Incorrect local variable value after picking up bittercup
After picking up bittercup local variable messageOn retains the value "1". If after picking it up some other script shows you a messagebox bittercup script will intercept pressed button. This part of script should reset messageOn variable but it doesn't: if ( button == 1 ) ; pick it up Activate Set messageOn to 0 return endif It seems it happens because "Activate" is placed before "Set messageOn to 0".
Steps to reproduce:
- Run command: placeatpc artifact_bittercup_01 1 1 1
- Pick up bittercup
- Run command: messagebox "test" "yes" "no"
- Select no
- Open inventory - you will see two bittercups
(RM-3671 from redmine: created on 2016-12-17 by Evgeny Kurnevsky, , closed on 2017-01-14 by scrawl .)
Edited by redmine