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 !
===== 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 !
Mensajes Mon 27 Apr 20 @ 10:20 pm
<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
try that, I only tested with a custom button but think it will work as a skin action too
Mensajes 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.
The solution you give works perfectly. I spent half a day on this without finding the solution !
Thanks again.
Mensajes Tue 28 Apr 20 @ 11:25 am