markdwags / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
https://www.razorce.com
GNU General Public License v3.0
139 stars 96 forks source link

Ability to COUNT without setting a COUNTER #146

Closed gauchotche closed 3 years ago

gauchotche commented 3 years ago

This is my suggestion...

if count '3132' > 10 XXXXX endif

so it would count directly by the object ID... that would make it much more straightforwarded...

thanks!

gauchotche commented 3 years ago

I would like very much to see this implemented in next version please

gauchotche commented 3 years ago

another idea would be using the 'findtype' function... like:

if findtype 'garlic' ('3434') > 10 XXXXXX endif

gauchotche commented 3 years ago

by using findtype you may prevent conflicts of already defined COUNTERS with the same name... so count/counters would use COUNTERS defined in that specific tab... while findtype would only use in-game names/ids, like 'garlic' or '3434'

alikrc commented 3 years ago

+1 on this. Mark if you can show direction i can also check the source code if i can implement it

markdwags commented 3 years ago

For now, I'm going to keep the existing Razor counting system vs. having to build another system that counts on the fly.