Difference between revisions of "Questions"

Jump to navigation Jump to search
791 bytes added ,  23:53, 7 June 2006
imported>Omzy
imported>TheImperialDragon
Line 491: Line 491:


Also, TheImperialDragon, the local variable CurrentDay in his script is reset within the same block as the code for the CurrentTime variable. By changing that variable, the condition will not allow modification of either variable more than once...UNLESS the GameDaysPassed variable is 0 (first day?), which is unlikely if the stage of the quest is 30.
Also, TheImperialDragon, the local variable CurrentDay in his script is reset within the same block as the code for the CurrentTime variable. By changing that variable, the condition will not allow modification of either variable more than once...UNLESS the GameDaysPassed variable is 0 (first day?), which is unlikely if the stage of the quest is 30.
:I didn't change the variable - or did I?  Well, the intention was that the game check the time as soon as step 1 of the quest is completed.  When the time is one day after the ''snapshot'', the game starts step 2 of the quest.  The DoOnce command was so that when the game checks the time, it doesn't do so every frame, that is to say, set step 1's beginning time every frame.
:Well anyway, your script works so there's not much point in debating mine anymore.  I had a look at the article [[If]], and it would seem that there is no immediate difference between the two variants you used.  Perhaps this is just a bug in the software?  I can't explain why the scripting system would see a difference between them... [[User:TheImperialDragon|The Imperial Dragon]] 23:53, 7 June 2006 (EDT)


== Destroying/Removing Item/Object Created by PlaceAtMe Function ==
== Destroying/Removing Item/Object Created by PlaceAtMe Function ==

Navigation menu