- Joined
- Nov 11, 2015
- Messages
- 26
- Reaction score
- 3
- First Language
- русский
In events can to change variable with default operands. One of them script. Please write an example where will use this variable SELF name/number. 


This will not work first because you are not in the good Page Command Event.Dear Jonforum! What I must do if i need write the follow expression in this script:
1) if 0<#0007<1 then result=k*sqrt(#0007) 2) if #0007>=1 then result=1
Please help by example (with picture if you can)
//If the gamevariable 7 are inferior to 1
if ($gameVariables.value(7)<1){
//your code here [ setValue ( ID, Expresion )]
$gameVariables.setValue(7, k*sqrt($gameVariables.value(7)));
}// If not than do this
else if ($gameVariables.value(7)>=1){
$gameVariables.setValue(7, 1);
}