| 05-15-2002, 02:54 PM | #1 |
Guest | I dunno if its the latest patch to 1.31....but it shouldnt matter since the WE itself didnt change right? Well heres my problem. I want the bounties to work so when a unit dies the player who killed it gets a certain amount of money like +1 gold. Now In 1.21 there was a way to change all the bounties of units a player has to +1 gold, but in 1.3 now theres not. Instead theres a flag for bounty to turn it off and on under player set flag on/off. So i go through all my custom units and set bounties to 1, 0 ,0 so that they only give 1 gold. And i run the map with a couple of friends and it doesnt give bounty. Last time i did it, bounties worked fine they just gave the default amount of gold. So since i hear theres a flag to turn it on and off, i set a player flag to turn it on and i get an error saying "must have a function name" or something like that and it disables the trigger. Please tell me whats wrong or any other solution to get units to drop their correct bounty or an amount of gold. thx |
| 05-15-2002, 03:19 PM | #2 |
Guest | function Trig_Untitled_Trigger_003_Func001002 takes nothing returns nothing call SetPlayerState( GetEnumPlayer(), PLAYER_STATE_GIVES_BOUNTY, 1 ) endfunction function Trig_Untitled_Trigger_003_Actions takes nothing returns nothing call ForForce( GetPlayersAll(), function Trig_Untitled_Trigger_003_Func001002 ) endfunction // ================================================== ========================= function InitTrig_Every_player_gives_bounty takes nothing returns nothing set gg_trg_Every_player_gives_bounty = CreateTrigger( ) call TriggerAddAction( gg_trg_Every_player_gives_bounty, function Trig_Untitled_Trigger_003_Actions ) endfunction |
