Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Help with a script...

Author
Message
W4ld0
7
Years of Service
User Offline
Joined: 3rd May 2016
Location:
Posted: 5th May 2016 16:29
Hello everyone,

I'm trying to set up a remote moveable wall. In order to achieve this, i use a script from the forum (by Tzap) :

;Artificial Intelligence Script

;Header

desc = Secret moveable wall

;Triggers

:state=0,plrusingaction=1:state=1,coloff
:state=1:moveup=1,localvar=1,incvar=1
:state=1,varequal=80:state=2
:state=2,plrusingaction=1:state=3
:state=3:moveup=-1,localvar=1,decvar=1
:state=3,varequal=0:state=0,colon


;End of Script

and the scifi stock switch 6. I replaced the "plrusingaction" condition by the "actived " one.
When i use the switch, the wall just go up and down until i use the switch again. Is there a way to have this scenario :

I use the switch : The wall go up and stay
I use the switch again : The wall go down and stay.

Thanks in advance and sorry for my bad english !
W4ld0
7
Years of Service
User Offline
Joined: 3rd May 2016
Location:
Posted: 5th May 2016 17:55
Sorry this time for the noob attitude, but this is what i am...a noob !

So i found out how to do this with a wall entity, switch 6 and this script :

;Artificial Intelligence Script

;Header

desc = Moveable wall remote

;Triggers

:state=0,activated=1:state=1,coloff
:state=1:moveup=2,localvar=1,incvar=1
:state=1,varequal=80:state=2
:state=2,activated=1:state=3
:state=3,activated=0:state=4
:state=4:moveup=-2,localvar=1,decvar=1
:state=4,varequal=0:state=0,colon



;End of Script

Thanks to the 24 readers of my very nooby first post

Login to post a reply

Server time is: 2024-02-21 04:07:15
Your offset time is: 2024-02-21 04:07:15