happy scripting problem fun!

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
PlzDieKthx
Posts: 95
Joined: Tue Apr 20, 2004 9:59 am
Location: :(

happy scripting problem fun!

Post by PlzDieKthx »

In the attached map try hitting the switch closer to the player and notice what happens to the board. I can't figure out why but instead of calculating the next step in the pattern and displaying it, script 1 draws a completely empty board.

Also is there a way to have it so that every time you use the switch script 1 turns on/off?

edit: have an attachment just because i'm so nice
Attachments
zife.zip
la de da
(33.83 KiB) Downloaded 16 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

The problem is your ACS_Executes. This doesn't execute the script. It just tells the ACS VM to start it in the next frame - and only one single copy.

For what you are using it a function is better suited. If you don't want that use ACS_ExecuteWithResult which executes the script immediately.
User avatar
PlzDieKthx
Posts: 95
Joined: Tue Apr 20, 2004 9:59 am
Location: :(

Post by PlzDieKthx »

change all the acs_executes?
Locked

Return to “Editing (Archive)”