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

farms and control points for income?

Status
Not open for further replies.
Level 3
Joined
Sep 9, 2007
Messages
60
hey, i have one problem that i need help, in my map i need cps that when someone atacks it, the cps become his...and these control points incress a gold income to players...also i need to make houses that incress the gold income...

plz someone help me with this doubt :hohum:

This thread has helped 1 person!
Has this thread helped you? [self="http://www.hiveworkshop.com/forums/newreply.php?do=newreply&noquote=1&p=382201"]Let us know[/self]!
 
Last edited by a moderator:
Level 19
Joined
Aug 24, 2007
Messages
2,888
Well this can be done with triggers

This is for Taking control of farm
  • Take Control
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Farm
    • Actions
      • Unit - Change ownership of (Triggering unit) to (Owner of (Attacking unit)) and Change color
This is for gold income
  • Gold Income
    • Events
      • Time - Every <Income Interval> seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Add ((Number of living Farm units owned by (Picked player)) x <Multiple Amount>) to (Picked player) Current gold
<Multiple Amount> is how much gold you gain per farm
 
Level 3
Joined
Sep 9, 2007
Messages
60
thanks man...really helped...thanks
only one doubt..., i cant set "Action" in the action "Player Group - Pick every player in (All players) and do (Action)"...

also, by "loop" in "Loop - Actions" you mean what?
 
Last edited:
Level 19
Joined
Aug 24, 2007
Messages
2,888
well when you chose Player Group - Pick players and do Multiple Actions
that Loop appears itself
 
Level 3
Joined
Apr 7, 2007
Messages
48
Yes there is, add a conditon that says
  • Conditions
    • (Percentage Life of (Capture_Point)) Less than or equal to X%
and then if that works do the rest of the trigger etc.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
so what ?
well he is true try a damage detection system >.< ... (kidding)
AH
sorry you are just giving information :p
 
Level 6
Joined
Apr 28, 2005
Messages
155
so what ?
There are better solutions. It's a low quality solution, and I would personally never be satisfied with it.
I'd make the farm just revive/respawn at death with new owner. (owner of killing unit)

well he is true try a damage detection system >.< ... (kidding)
If you weren't a noob (judging from posts and avatar), you wouldn't be kidding. Still, there are simpler solutions.

sorry you are just giving information :p
Yes, unlike some people who just make pointless statements...
This forum is all about information, what's your point? Do you even have one?
Imagine a help forum without information. No really, do it.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Quote: If you weren't a noob (judging from posts and avatar), you wouldn't be kidding. Still, there are simpler solutions.

:/ I use one already
I offered a simple solution because if someone asks this kind of question you can get he is new at World Editor. So pushing someone new to use damage detection system can make bad effects on user and even can make him dislike world editor because its too hard (it may make positive effect too but that effect will be small and its a very low chance)
 
Status
Not open for further replies.
Top