• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Trigger, Ability, Unit Problem

Status
Not open for further replies.

Thetruman1990

T

Thetruman1990

Hello,
I am making some alternative rts system. At the beginning of the game the player is supposed to "prepare" by spending gold to buy start-up units, food, items, etc.
The problem is i don't know how i am supposed to do it...
At the beginning i made some dummy unit which is selected by default, this unit has abilities and those are supposed to activate one trigger/script which does all the work.

The problem is when i use one of the abilities all of them are activated and instead of 1 "thing" i have all of them at once...

What i need is solution for this problem or suggestion of alternative route of making this.

Please help...
 
Fast, awesome, working... Thank you...


So i shall make a different question.
I wanted to make a happiness system based on food bar * / * and...

How can i make system that makes faster mana regeneration when people are happier and lowers it when they are sad ( can be just decreasing/increasing )? Some dummy caster, Trigger, Script?
 
First create a HAPPY and SAD group, when the unit is happy, Add it to the HAPPY
group, when sad, add it to the SAD group...

then the happy group is setup like this...
  • Pick every unit in HAPPY_GROUP
    • Unit - Set mana of (PickedUnit) to Mana of PickedUnit + 1.0
then the sad group is setup like this...
  • Pick every unit in SAD_GROUP
    • Unit - Set mana of (PickedUnit) to Mana of PickedUnit - 1.0
 
Status
Not open for further replies.
Back
Top