Donate above to help with Site, Vent, and Server costs
Welcome Guest [Log In] [Register]

You're currently viewing our forum as a guest. Register now or login to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple and fast.


Register HERE!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Bounty
Topic Started: Aug 19 2008, 11:18 AM (129 Views)
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
Code:
 

function Trig_Bounty_Func001A takes nothing returns nothing
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, GetEnumPlayer() )
endfunction

function Trig_Bounty_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Bounty_Func001A )
endfunction

//===========================================================================
function InitTrig_Bounty takes nothing returns nothing
set gg_trg_Bounty = CreateTrigger( )
call TriggerAddAction( gg_trg_Bounty, function Trig_Bounty_Actions )
endfunction



This turns on gold gain and xp from kills. but currently it spreads out the gold, and I'd rather have the gold go towards the killingunit's player. So I gotta find the native for that.
Offline Profile Quote Post Goto Top
 
AwaKening
Member Avatar
How do ya like me now
[ *  *  *  *  *  *  *  *  * ]
It's not triggered, its in your Map Constants.
Women, learn to work the toilet seat. You're a big girl. If it's up, put it down.
We need it up, you need it down.
You don't hear us complaining about you leaving it down.
Offline Profile Quote Post Goto Top
 
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
ooo, thanks. lol, see i'm glad i posted.
Offline Profile Quote Post Goto Top
 
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
trying to find it, can't find it. though I did find some other fun constants like xp from buildings, which i'll probably add, maybe, after some balancing first.
Offline Profile Quote Post Goto Top
 
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
since it kinda has to do with bounty how do you determine the xp gain on a killed unit? is it defined by its stat priority? or does stat priority just determine smart attack order?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Mapping · Next Topic »
Add Reply

Skinned by AwaKening