Trigger, Ability, Unit Problem

Status
Not open for further replies.
Level 1
Joined
Mar 27, 2011
Messages
2
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...
 
Level 1
Joined
Mar 27, 2011
Messages
2
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.
Top