hey there are those games that, when your "bullets" (gold) is down to zero, your guy can't attack ppl, how do i do the no attacking part, i have the no gold part, but i can't figure out the no attacking part.
Conditions ((Triggering player) Current lumber) Less than or equal to 0 (Unit-type of (Triggering unit)) Equal to Rpger (Ranger) (Item-type of (Item being manipulated)) Equal to Bow Actions Unit - Order (Attacking unit) to Stop Player - Make (Triggering player) treat Player 12 (Brown) as an Ally __________________________________________
And heres a simple jass thing for the attacking __________________________________________
function Trig_Attacking_Conditions takes nothing returns boolean if ( not ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER) >= 1 ) ) then return false endif if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'E005' ) ) then return false endif return true endfunction