• 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.

Looking for a unit state system

Status
Not open for further replies.
Level 7
Joined
Aug 19, 2009
Messages
278
I am looking for a system that can change the attack speed and armor for units. There were some systems before but I can't find it now anymore.
 
Level 7
Joined
Aug 19, 2009
Messages
278
Level 7
Joined
Aug 19, 2009
Messages
278
You can cnp the 115 or so abilities into your map and then map each one to a constant and hope that you didn't fudge up somewhere, sure.

I guess if i use binary series it wont be that big.

more like 1,2,4,8,16,32,64,128,256 only 9 of these reach up to 511

That is more than enough bonus i want. Then what will be the problem? They wont stack?
 
Level 7
Joined
Aug 19, 2009
Messages
278
They'll stack yea, the unit state systems do exactly that though

So making a pre-made list of how of these binary numbers add up to a certain number be easier or making a trigger?

Like if we need 150 bonus, It will check which binary number is lower than it. Store it in an variable e.g. 128 then subtract it. 150 - 128 = 22

Then it will check which is the next binary number less than it. i.e 16.
22-16 = 6 And it will store 16 in another variable

then it will store 4 and 2.

Later the trigger will add the bonus needed for the attack speed bonus to the target. i.e. 128,16,4 and 2 in this case.

The trigger will need 9 local variables highest to store from 0-400 attack speed.

Is this possible to do?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Nes, don't directly say it's impossible, you're portraying a bad image the "other solutions" you know ?
Check this system: http://www.hiveworkshop.com/forums/...em-v1-2-gui-218590/?prev=status=r2&u=defskull
But yeah as Nes said it, you gotta cnp those abilities into your Object Editor OR if you haven't started a project yet, you can merge them all by using File -> Export Ability Settings....
Export it to anywhere (perhaps Desktop directory), then open your map and import the earlier exported data.

Don't worry about the "Needs Fix" title, it doesn't even affect the performance of the system, just a minor modifications.
And yes, it's bug-free :)
 
Status
Not open for further replies.
Top