Questions on Conversions


Topic author
DarkRed
Terran Settler (Unemployed)
Terran Settler (Unemployed)
Posts: 1
Joined: Sat Dec 22, 2007 8:01 pm
Status: Offline

Questions on Conversions

Postby DarkRed » Thu Jan 17, 2008 7:54 pm

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.

User avatar

Milldawg
Zerg Defiler Nutritionist
Zerg Defiler Nutritionist
Posts: 733
Joined: Fri Aug 25, 2006 1:00 pm
Location: US
Contact:
Status: Offline

Re: Questions on Conversions

Postby Milldawg » Thu Jan 17, 2008 10:47 pm

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.


tipereth
Zerg Hydralisk Nail Stylist
Zerg Hydralisk Nail Stylist
Posts: 599
Joined: Tue Sep 19, 2006 7:37 pm
Status: Offline

Re: Questions on Conversions

Postby tipereth » Sun Jan 20, 2008 1:58 pm

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.

User avatar

Ricky_Honejasi
Xel'naga Solar Moderator
Xel'naga Solar Moderator
Posts: 2023
Joined: Wed Aug 16, 2006 3:50 pm
Status: Offline

Re: Questions on Conversions

Postby Ricky_Honejasi » Sun Jan 20, 2008 7:20 pm

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.


Return to “WarCraft Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest