• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Does this Leak and is it MUI

Status
Not open for further replies.
Level 4
Joined
Jun 13, 2014
Messages
77
hey guys im trying to create cast bars for my new RPG im using this system made by licheus but randomly having issues. Could someone with more experience check for leaks and see if its usable for multiple heroes (my game will have between 3-5 heroes using it at a time each owned by a separate player)
 

Attachments

  • progressbartestmap.w3x
    13.9 KB · Views: 46
Last edited:
Level 4
Joined
Jun 13, 2014
Messages
77
You save the data in simple global variables. As soon as a 2nd cast takes place before the first one is finished, the variables are overwritten. It is required to assign memory specifically to the cast instance/to the caster, so it does not possibly collide.

ill be honest i'm just coming back after like 5 years not making maps and i'm feeling pretty stupid and rusty would you mind uploading a fixed version of the map or explaining in a little more detail i don't quite understand. :S thank you :)

edit: i think i somewhat might understand maybe not but heres a shot if i used this system and made a trigger / variable set for each spell would it work?
I should also mention each player will only have 1 hero using the spell bar system
 
Last edited:
Level 26
Joined
Aug 18, 2009
Messages
4,097
For each write/read variable line. The

  • (Player number of (Owner of (Triggering unit)))
yields a different value for each player/owner of the unit in question. Therefore every player gains another element of the array as storage. If the unit you want to bind the data to is not the Triggering unit in the specific case, of course you need to adjust it to match.

If you do not know what an array is, you can easily browse the internet as it's a very common and simple data structure.
 
Level 4
Joined
Jun 13, 2014
Messages
77
For each write/read variable line. The

  • (Player number of (Owner of (Triggering unit)))
yields a different value for each player/owner of the unit in question. Therefore every player gains another element of the array as storage. If the unit you want to bind the data to is not the Triggering unit in the specific case, of course you need to adjust it to match.

If you do not know what an array is, you can easily browse the internet as it's a very common and simple data structure.

so i do it for every line with an array in it that involves triggering unit?
and if i do this do i still need to create new arrays for every spell
sorry im so noob i know what an array is but i dont know how to work them 100% yet.
 
Status
Not open for further replies.
Top