Code: Select all
r_script_signal interact [
r_global_set $item_counter (+ (r_global_get $item_counter) 1)
echo The item counter is at (r_global_get $item_counter)
if (= (r_global_get $item_counter) $itemlvl) [
itemlvl = [
cond [= ((r_global_get $item_counter)) 10] [
echo "you have gained a level with this item"
] [= ((r_global_get $item_counter)) 15] [
echo "you have gained a level with this item"
] [= ((r_global_get $item_counter)) 25] [
echo "you have gained a level with this item"
]
]
]
*Editted the brackets, but the cond still isnt working. The problem starts at the if statement. I dont know if im using in the correct way.. Do i need the if statement to run the cond?