need help. UOSteam macro to compare uses remaining

Share your guides, how-tos, FAQs, and so forth. This is not for support -- post questions in General Discussion.
Post Reply
Sgfcat
Posts: 138

need help. UOSteam macro to compare uses remaining

Post by Sgfcat »

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.
User avatar
MB
Posts: 379

Re: need help. UOSteam macro to compare uses remaining

Post by MB »

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
Sgfcat likes this.
Top
Sgfcat
Posts: 138

Re: need help. UOSteam macro to compare uses remaining

Post by Sgfcat »

you are the master, thanks man ill fiddle with it
Post Reply