View Issue Details
Category | |||||
---|---|---|---|---|---|
SSPBT:本体(SSP) | |||||
Severity | major | Reproducibility | always | ||
Status | new | ||||
Summary | 0000617: Calling functions with %() doesn't seem to be working | ||||
Description | SSP/2.6.52 (20231121-3; Windows NT 10.0.19045) Tested with ghosts using YAYA Tc571-6 Code: ``` OnMenuTestA : all { "\C\![lock,balloonrepaint]\c" "\_q\b[0]" "\![*]\q[OnMenuTestB,OnMenuTestB]" "\![unlock,balloonrepaint]" } OnMenuTestB : all { "\C\![lock,balloonrepaint]\c" "\_q\b[2]" "\![*]\q[OnMenuTestA,OnMenuTestA]" "\![unlock,balloonrepaint]" } ``` The following code is in OnTranslate: ``` OnTranslate { _talk = reference0 if reference1 == "" && reference2 == "" //If this is from the input box { //send input box : no event (ref2) , no special flag (ref1) _talk = EVAL('"' + REPLACE(_talk,'"','""') + '"') } TOSTR(_talk) } ``` Using `\![raise,OnMenuTestA]` in script input will open the menu normally, but using `%(OnMenuTestA)` in script input will not. In previous versions of SSP, %() used to work. The script is appearing in script log normally, and if executed from script log (or if the resulting script is pasted into script input) it will run fine. But otherwise, the tags will not execute. Sometimes I have seen the balloon briefly flicker into existence, but then it disappears again. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Attached Files | |||||