 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Sat Apr 26, 2003 9:18 pm Post subject: Multiple Triggerings of Script |
|
|
I've made an on-key-press script that is supposed to activate every time the spacebar is pressed. In order to make sure that the script isn't reactivated again and again, I have put the "suspend player" command in right after the script begins. However, this does not work. Instead, if one is to hold the space bar, it will keep on activating again and again until there is a script buffer overflow. Why is this happening because it's REALLY annoying. I guess what I'm getting at is finding out if there is a way to prevent the game from registering that the player is pressing any buttons, or in other words, a sort of "suspend key press" command. |
|
Back to top |
|
 |
Blazes Battles Inc. I'm a chimp, not a
Joined: 25 Jan 2003 Posts: 505
|
Posted: Sat Apr 26, 2003 9:35 pm Post subject: |
|
|
At the beginning of the script, have this:
Code: | if (check tag (#==off)
then(set tag (#,on)
# ALL THE NORMAL COMMANDS OF THE SCRIPT
set tag (#,off))
else()
end |
That way, if the script is running, and so the tag of your choice is on, if it is triggered again it will just end and the first will continue. When it ends, it will turn the tag off, allowing the script to be triggered again. _________________ Preserve OHR history! Do it for the children! |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|