MUI Spell little problem.

Mythes

Member
Reaction score
7
I usually do MUI spells with [Player number] array on my variables, so it's possible to have multiple PLAYERS using the same triggered spell.
But now I'm having AI players in the game and I have to make it possible to have multiple AI Units (<-- very important) use that spell...
Anyway to GUI this or it will have to be JASS made using Local Variables?


Thanks in adv.
Myt.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Using Player Number only makes it MPI, not MUI. You'll want to use an indexing system or hashtables for this.
 

Mythes

Member
Reaction score
7
thanks kaerf..
As always, you're saving my ass here... Since 2010 xD

rep+

I will try looking for a good hashtable tutorial...
Do you know a good indexing tut. ?

Thanks again.

Myt.
 

Mythes

Member
Reaction score
7
@Sil3nt

Thanks for the first link, it's absurdly helpfull!
For the second, I was already reading it but thanks anyway.

I have seen that first link but wasn't sure it was really good, so I went with hashtables anyway... This make things much easier...

Thanks again,
Myt.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
You should maybe show us the trigger and tell us what it is supposed to do.
It really isnt needed to use hashtables and unit indexing systems to make MUI GUI spells.
I am doing that for years and i have never even touched an indexing system and hashtables i use rarely.
Edit: And speaking i am like yoda.
 

Mythes

Member
Reaction score
7
Guys, sorry for the late reply...

@Accname
I needed to make spells MUI but while still using GUI-friendly advice. The Indexing system posted above worked perfectly, because it makes each cast unique for each unit that casts the spell... I HEAVILY recommend it...

Thanks for all the help guys =)

Myt.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top