• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Looking for a unit state system

Status
Not open for further replies.
Level 7
Joined
Aug 19, 2009
Messages
279
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.
 
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?
 
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?
 
Nes, don't directly say it's impossible, you're portraying a bad image the "other solutions" you know ?
Check this system: https://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.
Back
Top