how do you make enemys drop money?
Spo Spo Level 5 Joined Jun 1, 2009 Messages 122 Resources: 4 Resources Maps 4 Aug 30, 2009 #1 how do you make enemys drop money?
Marcelo Hossomi Marcelo Hossomi Level 6 Joined Dec 31, 2005 Messages 712 Resources: 3 Resources Models 2 Spells 1 Aug 30, 2009 #2 There's three fields in the object editor to define how much each unit can give: (A) Stats - Gold Bounty Awarded - Base (B) Stats - Gold Bounty Awarded - Number of Dice (C) Stats - Gold Bounty Awarded - Sides per Die Total: from (A+B) to (A+(B*C)) You have to enable bounty-giving for each player using a trigger: Player - Turn Gives Bounty on for Player X (this is Player - Turn Player Flag On/Off) Last edited: Aug 30, 2009
There's three fields in the object editor to define how much each unit can give: (A) Stats - Gold Bounty Awarded - Base (B) Stats - Gold Bounty Awarded - Number of Dice (C) Stats - Gold Bounty Awarded - Sides per Die Total: from (A+B) to (A+(B*C)) You have to enable bounty-giving for each player using a trigger: Player - Turn Gives Bounty on for Player X (this is Player - Turn Player Flag On/Off)
Starquizer Starquizer Level 16 Joined Mar 3, 2006 Messages 1,564 Resources: 7 Resources Maps 1 Spells 3 Tutorials 3 Aug 30, 2009 #3 There are many ways to do that. 1) Turning on Bounty: Initialization Events Map initialization Conditions Actions Player - Turn Gives bounty On for PlayerX 2) If you want a percent chance of giving money there are 2 ways, either create a table that gives gold coin or by triggers, like this: Money Drop Events Unit - A unit owned by Player 2 (Blue) Dies Conditions Actions Set Chance = (Random integer number between 1 and 100) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Chance Less than or equal to 30 Then - Actions Item - Create Gold Coins at (Position of (Triggering unit)) Else - Actions Change the number 30 to any number you want; that represents the chance of dropping
There are many ways to do that. 1) Turning on Bounty: Initialization Events Map initialization Conditions Actions Player - Turn Gives bounty On for PlayerX 2) If you want a percent chance of giving money there are 2 ways, either create a table that gives gold coin or by triggers, like this: Money Drop Events Unit - A unit owned by Player 2 (Blue) Dies Conditions Actions Set Chance = (Random integer number between 1 and 100) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Chance Less than or equal to 30 Then - Actions Item - Create Gold Coins at (Position of (Triggering unit)) Else - Actions Change the number 30 to any number you want; that represents the chance of dropping
Dr Super Good Dr Super Good Spell Reviewer Level 63 Joined Jan 18, 2005 Messages 27,100 Resources: 4 Resources Maps 2 Spells 2 Aug 30, 2009 #4 Moved as it needs a trigger made and not help fixing a trigger. Its a player property, 1 represents on, 0 off. No clue how it responds with values outside the boolean range (as it can be passed them).
Moved as it needs a trigger made and not help fixing a trigger. Its a player property, 1 represents on, 0 off. No clue how it responds with values outside the boolean range (as it can be passed them).