Talk:Options Menu
Revision as of 11:44, 20 April 2012 by imported>Archerkb (→aiButton < 0)
aiButton < 0
I don't think there's a need to check for when aiButton is -1. Unlike with the previous script language, Papyrus seems to pause script execution (of the rest of the event/function) until it receives input from the Show() function. —The preceding unsigned comment was added by Fg109 (talk • contribs) 13 April 2012
- Yep, Show() will block the script until it returns. If the return value is -1 then it means the message failed to show for some reason. I think that would more likely happen during development if the author forgot to set a property. If it's ever seen in a released then something is fubar. Tunaisafish 05:17, 13 April 2012 (EDT)
correction in the third example?
In the third example, in the line "If (aiButton == -1)" the condition should probably be changed to !=. Otherwise the loop would exit without waiting for input. Just a small typo I think. Archerkb