46
OXCE Support Y-scripts / Re: Broken Y-scripts
« on: March 08, 2024, 12:11:54 am »Code: [Select]
Error in parsing script 'hitUnit' for 'Global Event Script': invalid operation in line: 'if and eq shield_skipper 1 shieldType 0;'
This error is because you have only one `eq`, basic `if` look like `if eq x y;` but you can have multiple conditions by appending `and`
like:
Code: [Select]
if and
eq x y #first `eq`
eq z w; #second `eq`
Code: [Select]
Error in parsing script 'hitUnit' for 'Global Event Script': invalid operation in line: 'set attacker is_concealed 0;'
set have only two arguments not three.Code: [Select]
Error in parsing script 'hitUnit' for 'Global Event Script': invalid operation in line: 'BattleUnit.setTag is_concealed 1;'
I have no idea what your intention was with this code, what tag and what object you want update?