I want to make a system that is two important qualities:
1) If a player attacks a Castle, I want the Castle to change to the attacking player's side when it suffers, say, 90% damage.
2) Every time a looping timer expires, the player gets gold and units from the castle.
Is there any easy way to do this, or do I have to trigger every castle seperately?
Thanks in advance.
Questions on Conversions
-
- Terran Settler (Unemployed)
- Posts: 1
- Joined: Sat Dec 22, 2007 8:01 pm
- Milldawg
- Zerg Defiler Nutritionist
- Posts: 729
- Joined: Fri Aug 25, 2006 1:00 pm
- Location: US
Re: Questions on Conversions
Assuming all Castles are the same, you could just have variables counting the number of castles each player controls and make the units and gold they get proportional to that variable.
-
- Zerg Hydralisk Nail Stylist
- Posts: 597
- Joined: Tue Sep 19, 2006 7:37 pm
Re: Questions on Conversions
You can also do the first one with a very general trigger, though if there's more than two players you'll have to deal with last hit nonsense.
- Ricky_Honejasi
- Xel'naga Solar Moderator
- Posts: 2011
- Joined: Wed Aug 16, 2006 3:50 pm
Re: Questions on Conversions
It would be probably simpler to allow the castle to be fully destroyed (as in reaching 0 hp), detect who killed which castle and then remove and recreate the castle in that order (NOT "replace" since the new castle risks to be slightly displaced).
Last edited by Ricky_Honejasi on Sun Jan 20, 2008 7:22 pm, edited 1 time in total.