HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Changing players in random way

09-10-2008, 08:30 PM#1
Flame_Phoenix
Hi guys, I am making a spell, maybe I will submit it for spell olympics, but don't know yet.
The spell is called confusion, is an AOE spell, and changes the owner of units inside the AOE .. to ANY player we can think of...

I have a few problems ... making this static wouldn't be hard, but I want to make it JESP and so complications do arrive for me ...

I want to make the user choose which players the unit can change to, and the chance each player can have.
I don't understand some things like, why the number of players is 16 instead of 15 and how to make this easier for the user.

I think using dynamic arrays is the solution, I am thinking of using a 2D array, but first I need to know how I am going to use it ...

Any suggestions ?

PS, I DO know and understand dynamic and 2D arrays now xD
09-10-2008, 11:17 PM#2
Anitarf
Quote:
Originally Posted by Flame_Phoenix
PS, I DO know and understand dynamic and 2D arrays now xD
That doesn't mean you have to use them for stuff that doesn't need them.
09-10-2008, 11:22 PM#3
Flame_Phoenix
Thing is, I think I need them now, I am just looking for an opinion though ...
09-10-2008, 11:24 PM#4
darkwulfv
I gave you one.... use buffs. It'll be a pain to import, yeah, but it works. If you'd rather use 2D arrays or whatever, that works too...

EDIT: Nevermind, I was thinking of another question you posed. Sorry, ignore that.
09-11-2008, 05:10 AM#5
Pyrogasm
Since you have your other thread, I'll close this one.