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

Old August 7th, 2017, 01:14 PM
so it seems i got the hang of it

Code:
if (field[gUserEquip].value = 1) then
 if (field[trkUser].value = 1) then
	hero.child[ArmorClass].field[tACArmor].value -= 1
 endif
endif
if (field[gUserEquip].value = 1) then
 if (field[trkUser].value = 2) then
	hero.child[ArmorClass].field[tACArmor].value -= 2
 endif
endif
can be boiled down to
Code:
if (field[gUserEquip].value = 1) then
hero.child[ArmorClass].field[tACArmor].value -= field[trkUser].value
endif


@mathias thanks for letting lose some clue's (better then the straight up answer) took me a while but we have results!

Last edited by Korpah; August 7th, 2017 at 01:18 PM. Reason: thanking Mathias
Korpah is offline   #9 Reply With Quote