The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Cross wasteland travel door.

General mod discussion and requests.
User avatar
Shardoom
Posts: 117
Joined: Sat Jun 22, 2013 11:06 am

Cross wasteland travel door.

Post by Shardoom » Sat Jul 19, 2014 9:09 pm

My request isn't really for a full mod, just a simplification of the scripting that takes place during the train travel.


 


So that mods that add in cross-wasteland travel properly update the global variables that TTW has.


If someone could create some source code for this, that would be really helpful.


You do not have the required permissions to view the files attached to this post.

JaxFirehart
Posts: 3003
Joined: Wed Sep 12, 2012 12:33 am

already exists

Post by JaxFirehart » Sat Jul 19, 2014 9:24 pm

already exists


Travel from DC to NV

SetStage TTWFunctions 0

SetStage TTWFunctions 3


Travel from NV to DC

SetStage TTWFunctions 1

SetStage TTWFunctions 2



User avatar
Shardoom
Posts: 117
Joined: Sat Jun 22, 2013 11:06 am

Oh cool and that's it? Will

Post by Shardoom » Sat Jul 19, 2014 9:29 pm

Oh cool and that's it? Will that automatically update the bInDCWasteland variable? (and it's opposite obviously)



JaxFirehart
Posts: 3003
Joined: Wed Sep 12, 2012 12:33 am

yes it will

Post by JaxFirehart » Sat Jul 19, 2014 9:36 pm

yes it will



User avatar
Shardoom
Posts: 117
Joined: Sat Jun 22, 2013 11:06 am

Thankyou. :)

Post by Shardoom » Sat Jul 19, 2014 9:42 pm

Thankyou. :)



User avatar
Shardoom
Posts: 117
Joined: Sat Jun 22, 2013 11:06 am

;Travel from DC to NV

Post by Shardoom » Sat Jul 19, 2014 10:23 pm

;Travel from DC to NV
begin OnActivate
if IsActionRef player
SetStage TTWFunctions 0
SetStage TTWFunctions 3
activate
else
activate
endif
End

Would this work when attached to a door?

JaxFirehart
Posts: 3003
Joined: Wed Sep 12, 2012 12:33 am

that should work

Post by JaxFirehart » Sat Jul 19, 2014 10:51 pm

that should work



User avatar
Shardoom
Posts: 117
Joined: Sat Jun 22, 2013 11:06 am

Great, thanks again.

Post by Shardoom » Sat Jul 19, 2014 10:54 pm

Great, thanks again.



User avatar
Shardoom
Posts: 117
Joined: Sat Jun 22, 2013 11:06 am

Well my little script isn't

Post by Shardoom » Sun Jul 20, 2014 10:07 am

Well my little script isn't working...



JaxFirehart
Posts: 3003
Joined: Wed Sep 12, 2012 12:33 am

if bInDCWasteland == 0

Post by JaxFirehart » Sun Jul 20, 2014 2:41 pm



if bInDCWasteland == 0


  SetStage TTWFunctions 1 ;Turn on DC... stuff


  SetStage TTWFunctions 2 ;Turn off Mojave... stuff


  set TTWWorldLocation to 1 


  player.MoveTo TTWDCTrainEngineXMarker


  set TTWFunctions.iDaysToPass to 14 ;the trip takes 14 days


  SetStage TTWFunctions 20 ;Pass 14 days without killing the player


else


  SetStage TTWFunctions 0 ;Turn off DC... stuff


  SetStage TTWFunctions 3 ;Turn on Mojave... stuff


  set TTWWorldLocation to 512


  player.MoveTo TTWNVTrainEngineXMarker


  set TTWFunctions.iDaysToPass to 14 ;the trip takes 14 days


  SetStage TTWFunctions 20 ;Pass 14 days without killing the player


endif



That is how TTW does it. There is more stuff surrounding this, but this is the meat of it. If you look, it's pretty similar to what you are using.


Post Reply