I'm trying to figure out how to use UOSteam to try to compare uses remaining between two items and then decide to use the one with lesser uses remaining.
i cant exactly figure out how to use the property finding syntax to compare between another item instead of just checking how many uses it has remaining on itself.
need help. UOSteam macro to compare uses remaining
Re: need help. UOSteam macro to compare uses remaining
Could rig up something like this with lists to get the value of the first item to be the first value in a list.
promptalias 'item1'
promptalias 'item2'
@removelist 'counter'
@createlist 'counter'
@pushlist 'counter' 1
@pushlist 'counter' 2
@pushlist 'counter' 3
@pushlist 'counter' 4
@pushlist 'counter' 5
@pushlist 'counter' 6
@pushlist 'counter' 7
@pushlist 'counter' 8
@pushlist 'counter' 9
@pushlist 'counter' 10
@pushlist 'counter' 11
@pushlist 'counter' 12
for 0 to 'counter'
if @property 'Uses Remaining' 'item1' == counter[]
pushlist 'counter' counter[] 'front'
break
endif
endfor
if @property 'Uses Remaining' 'item2' > counter[0]
sysmsg 'Item2 has more uses'
else
sysmsg 'Item1 has more uses'
endif
promptalias 'item1'
promptalias 'item2'
@removelist 'counter'
@createlist 'counter'
@pushlist 'counter' 1
@pushlist 'counter' 2
@pushlist 'counter' 3
@pushlist 'counter' 4
@pushlist 'counter' 5
@pushlist 'counter' 6
@pushlist 'counter' 7
@pushlist 'counter' 8
@pushlist 'counter' 9
@pushlist 'counter' 10
@pushlist 'counter' 11
@pushlist 'counter' 12
for 0 to 'counter'
if @property 'Uses Remaining' 'item1' == counter[]
pushlist 'counter' counter[] 'front'
break
endif
endfor
if @property 'Uses Remaining' 'item2' > counter[0]
sysmsg 'Item2 has more uses'
else
sysmsg 'Item1 has more uses'
endif
Re: need help. UOSteam macro to compare uses remaining
you are the master, thanks man ill fiddle with it