Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Bugs : Questions in global scripts have delayed execution after waiting for an event
New Topic New Poll Post Reply
Poster Message
kieranmillar
Level: Smitemaster
Rank Points: 2670
Registered: 07-11-2014
IP: Logged
icon Questions in global scripts have delayed execution after waiting for an event (+2)  
If you put a question in a global script, but it is part of code that will not execute until after some event has fired by using some Wait For command, then once you answer the question the code following the question will wait a turn before execution.

This only happens if it is in a global script, and if the question is placed after an event.

Here is some immature example code, put it into the default script of a character, then have another character Generate Entity this character. To trigger the question, walk into the NW corner of the room. (Imperative 15 is "Imperative make script global", in case you were wondering)

  Imperative 15
  Wait for entity Player 1,1,2,2
  If ... 
        Question Fart?
     Speech "Fart",Normal,Player,0,.
  Else 
     Speech "No fart",Normal,Player,0,.
  If End 


What you see: No speech happens until the following turn.

What should happen: Speech should trigger immediately.
03-06-2016 at 08:40 PM
View Profile Send Private Message 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: Questions in global scripts have delayed execution after waiting for an event (+1)  
Can confirm that in 1.2.6.283 that questions in global scripts and equipment/command Each Use labels no longer delay execution of following code until the next turn. :thumbsup
03-20-2016 at 04:42 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 : Questions in global scripts have delayed execution after waiting for an event
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.