Embrace_It
New Member
- Reaction score
- 9
Hi guys,
I'm making an aggro system, like in WoW.
I need some kind of system that can store the data.
I need to store the following:
- The unit registered to the system
- The five units on the above unit's aggro list
- The five units' aggro (integers)
I was considering using AIDS, but then I read this in the documentation:
Please suggest an alternative I'm thinking hashtables, but I'm having a hard time figured how to save it. Maybe something like:
I'm making an aggro system, like in WoW.
I need some kind of system that can store the data.
I need to store the following:
- The unit registered to the system
- The five units on the above unit's aggro list
- The five units' aggro (integers)
I was considering using AIDS, but then I read this in the documentation:
- You cannot use array members.
Please suggest an alternative I'm thinking hashtables, but I'm having a hard time figured how to save it. Maybe something like:
JASS:
call SaveUnit(HT, GetHandleId(registered), 0, registered)
call SaveUnit(HT, GetHandleId(registered), 1, unit1)
...
call SaveInteger(HT, GetHandleId(registered), 1, aggro1) // <-- collision? I figure blizz would take this into account <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" />