Need help with a command for my script

Post » Sun Dec 19, 2010 11:50 am

I am making my first script for the playerpod lounger in vault 112 to take me to TL repeatedly.
Now I got my script so far as to take me there once iv seated myself in the pod and activated the lounger, but I cannot get the lounger to close BEFORE I enter TL.

I cant seem to get the pod to close before the screen loads and takes me to TL, I have tried putting in a timer but whatever I do the movetoTL command seems to get priority and plays before the playgroup backward/forward command does.

My script looks roughly like this

begin onactivate
activate
if playergetsitting == 3
Playgroup backward 1 (closes the pod only when movetotl is removed from the script )

SetLocationSpecificLoadScreensOnly 1

Player.moveto MQ04StartBench
Set PlayerInTL to 1

endif
end


Now my question is, is there any command or change to this script which makes it possible for the pod to close first by playing group backward 1 before it moves the player to TL?

I am probably doing something very wrong but I cant figure out what it is :(
User avatar
Zoe Ratcliffe
 
Posts: 3370
Joined: Mon Feb 19, 2007 12:45 am

Post » Sun Dec 19, 2010 6:30 pm

A timer is what you need. Lets make sure you set it up right. With that script it starts the animation and moves you in the same frame so you never see it closing. This is what your script needs to look like.

(first part of script)short Closed ; Put this at the top of the script with the other variablesbegin onactivate activate if playergetsitting == 3  Playgroup backward 1  Set timer to 5  Set Closed to 1  SetLocationSpecificLoadScreensOnly 1 endifendBegin GameMode If Timer > 0  Set Timer to Timer - GetSecondsPassed ElseIf Closed == 1 && PlayerInTL != 1  Player.moveto MQ04StartBench  Set PlayerInTL to 1endifend(rest of script)


Then simply change the number in the line 'Set Timer to 5' to however many seconds seconds work so it closes then teleports the player. It will probably need to be closer to 10. Then just have it set Closed to 0 right when you come back from TL. That should work.
User avatar
Ellie English
 
Posts: 3457
Joined: Tue Jul 11, 2006 4:47 pm

Post » Sun Dec 19, 2010 11:02 pm

I am making my first script for the playerpod lounger in vault 112 to take me to TL repeatedly.
Now I got my script so far as to take me there once iv seated myself in the pod and activated the lounger, but I cannot get the lounger to close BEFORE I enter TL.

I cant seem to get the pod to close before the screen loads and takes me to TL, I have tried putting in a timer but whatever I do the movetoTL command seems to get priority and plays before the playgroup backward/forward command does.

My script looks roughly like this

begin onactivate
activate
if playergetsitting == 3
Playgroup backward 1 (closes the pod only when movetotl is removed from the script )

SetLocationSpecificLoadScreensOnly 1

Player.moveto MQ04StartBench
Set PlayerInTL to 1

endif
end


Now my question is, is there any command or change to this script which makes it possible for the pod to close first by playing group backward 1 before it moves the player to TL?

I am probably doing something very wrong but I cant figure out what it is :(


Thank you very much, with this information do I not only know what my script was lacking but also helps me understand better how a timer works! :)
User avatar
Cody Banks
 
Posts: 3393
Joined: Thu Nov 22, 2007 9:30 am

Post » Sun Dec 19, 2010 4:36 pm

I'm glad I could help you learn, and figure that out. :D

Gunmaster95
User avatar
Kayla Keizer
 
Posts: 3357
Joined: Tue Dec 12, 2006 4:31 pm


Return to Fallout 3