Page 1 of 1

Questions on Conversions

Posted: Thu Jan 17, 2008 7:54 pm
by DarkRed
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.

Re: Questions on Conversions

Posted: Thu Jan 17, 2008 10:47 pm
by Milldawg
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.

Re: Questions on Conversions

Posted: Sun Jan 20, 2008 1:58 pm
by tipereth
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.

Re: Questions on Conversions

Posted: Sun Jan 20, 2008 7:20 pm
by Ricky_Honejasi
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).