I was looking for a way to count my enemies in the screen with a function
any ideas?
how to count pg in screen
Moderators: Murderator+, Murderator
var Enemy = '0x00000000'
Enemy=UO.JournalSerial(UO.InJournal( 'is attacking you' )-1)
repeat that until ???
UO.Print(' You see ' + Str( UO.Count( Enemy ) ) + ' bad dudes' )
or let it keep counting
can I ask why for? cause there may be other ways to accomplish what you really need
there are also uo.GetNotoriety([object]) but i never used that try a search
Enemy=UO.JournalSerial(UO.InJournal( 'is attacking you' )-1)
repeat that until ???
UO.Print(' You see ' + Str( UO.Count( Enemy ) ) + ' bad dudes' )
or let it keep counting
can I ask why for? cause there may be other ways to accomplish what you really need
there are also uo.GetNotoriety([object]) but i never used that try a search