View Single Post
Korpah
Junior Member
 
Join Date: Apr 2016
Posts: 19

Old August 7th, 2017, 12:37 PM
if (field[trkUser].value = 1) then
hero.child[ArmorClass].field[tACArmor].value -= 1
endif
if (field[trkUser].value = 2) then
hero.child[ArmorClass].field[tACArmor].value -= 2
endif


seems to be the right script (i picked the wrong phase at first that's why it didn't worked correctly, i put it on final phase now), although i need to find a way that the above script doesn't run when the item is not equipped.

so the next question is how to combine two if statements >.<

if (field[gIsEquip].value = 1) then
Korpah is offline   #6 Reply With Quote