rversteegen left a comment (ohrrpgce/ohrrpgce#430)

I noticed there's a horrible second way to trigger, hence symptom, of this bug 
(aside from when multiple scripts are triggered on the same tick): when a 
script is triggered while the script interpreter is currently running. This 
also suspends a script that's not in a wait state. It turns out that there's 
only one way in old versions to do that (since everything else that could 
trigger a script causes an implicit wait): the `advance text box` command on a 
textbox with a run script After condition (any script at all). This actually 
puts the engine into an infinite loop (tested in werewaffle+, ubersetzung, and 
2001-06-11) because the `wantimmediate = -1` flag causes the `advance text box` 
to run again (another bug, I'm not sure when that was fixed), and there's a 
third bug in old versions, not fixed until ypsiliform:
>     * Using "advance text box" when no text box is open no longer
>       re-evaluates the conditionals of the most recently closed text
>       box [James]
Any time I go back to old versions I'm immediately struck by how buggy and 
unergonomic they are... I couldn't even set the script triggers in the 2001 
Custom without them being wiped after one tick, and `@⁠donothing` didn't 
compile in ubersetzung (it does supposedly support references), etc. The lack 
of page up/down/home/end drives me mad.

Also, the testcase I posted at the top 
(https://github.com/ohrrpgce/ohrrpgce/issues/430#issuecomment-599075433) 
requires holding down the Use key for at least two ticks. Because all triggered 
scripts except onkeypress and menu-triggered ones (including, I notice, scripts 
triggered by textboxes advanced by a closing menu but not by a normal textbox 
advance) run on the following tick isntead, ugh. (More lost time; sadly it's 
details like that that can make scripting frustrating.)


-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/430#issuecomment-3064920948
You are receiving this because you are subscribed to this thread.

Message ID: <ohrrpgce/ohrrpgce/issues/430/[email protected]>
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to