Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Bugs : Wait for Event Monster Stabbed doesn't work in global scripts
New Topic New Poll Post Reply
Poster Message
kieranmillar
Level: Smitemaster
Rank Points: 2670
Registered: 07-11-2014
IP: Logged
icon Wait for Event Monster Stabbed doesn't work in global scripts (+1)  
Here's a super simple script that raises your attack by one after every monster you kill.

Label Loop
  Wait for event Monster stabbed
  Set var "_ATK" + 1
  Go to Loop


Put it into a character and place him in the room. It works fine.

Now make that a global script by putting it as the default script of a character and adding the Imperative Make Global Script as the first line. The script now no longer works, specifically the wait for event monster stabbed will not trigger when it is in a global script.

Using version 1.2.3.116

[Last edited by kieranmillar at 01-17-2016 10:32 PM]
01-17-2016 at 10:30 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5056
Registered: 02-04-2003
IP: Logged
icon Re: Wait for Event Monster Stabbed doesn't work in global scripts (0)  
Thanks for the thorough report and repro steps. I figured this out. The root cause is that global scripts weren't checking for cue events that can occur later in the turn like standard in-room NPCs/scripts do.

Same thing can happen on room entrance, it appears.

Fixed in rev 124.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
01-18-2016 at 12:50 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2670
Registered: 07-11-2014
IP: Logged
icon Re: Wait for Event Monster Stabbed doesn't work in global scripts (+2)  
I can confirm that Wait for Event Monster engaged, Wait for Event Monster Stabbed, Wait for Event Briar Grew and Wait for Event mud baby formed all triggered after a fight from a global script in 1.2.3.133 :thumbsup

I'm not 100% sure what other commands would activate after a fight, and admittedly didn't test all of the above in the older version, but it all seems to be fine to me.
01-18-2016 at 09:58 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Bugs : Wait for Event Monster Stabbed doesn't work in global scripts
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.