• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

hey dudes

Status
Not open for further replies.
Level 12
Joined
Jul 11, 2007
Messages
642
JASS:
function Trig_Melee_Initialization_Func001C takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetTrainedUnit()) == 'seshimazi' ) ) then
        return false
    endif
    return true
endfunction
function Trig_Melee_Initialization_Actions takes nothing returns nothing
    if ( Trig_Melee_Initialization_Func001C() ) then
        call AdjustPlayerStateBJ( x, Player(HIVE), PLAYER_STATE_RESOURCE_HAPPYNESS )
        call AdjustPlayerStateBJ( y, Player(seshimazi), PLAYER_STATE_RESOURCE_REP )
        call TriggerSleepAction( z )
        call RemoveUnit( GetTrainedUnit() )
    else
        call DoNothing(  )
    endif
endfunction
//===========================================================================
function InitTrig_Melee_Initialization takes nothing returns nothing
    set gg_trg_Melee_Initialization = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Melee_Initialization, EVENT_PLAYER_UNIT_TRAIN_FINISH )
    call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction
 
Status
Not open for further replies.
Top