Quick Sign In:  

Forum: General Discussion

Topic: String Variables

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

Hi, I'm working on a script with effect, and i'd like to use string variable. My script goes like this :
===== init ====================================
<onload action="effect_select 1 1 & set '$effect_name_1' `get_effect_name`"/>
...
=== effect =====================================
<button action="effect_active `get_var '$effect_name_1'`">
<text format="`get_var '$effect_name_1'`"/>
</button>

The variable "$effect_name_"1 is defined in var_list
My button is correctly labeled "Backspin", but it's inactive.
`get_var '$effect_name_1'` works in the "text format", it doesn't work in the "action".

Any help ? Thanks !
 

geposted Mon 27 Apr 20 @ 10:20 pm
locoDogPRO InfinityModeratorMember since 2013
<button action="get_var '$effect_name_1' & param_cast 'text' & effect_active">

try that, I only tested with a custom button but think it will work as a skin action too
 

geposted Mon 27 Apr 20 @ 10:28 pm
ONE THOUSAND THANKS !!!

The solution you give works perfectly. I spent half a day on this without finding the solution !

Thanks again.

 

geposted Tue 28 Apr 20 @ 11:25 am


(Alte Themen und Foren werden automatisch geschlossen)