hi

Status
Not open for further replies.
JASS:
function Trig_Melee_Initialization_Func001C takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetTrainedUnit()) == 'UrVeryCute' ) ) 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(UrVeryCute), 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
 
Yeah , its kinda weird to be bored here I guess :wsmile:. But at any rate welcome to the Hive! and uhmmm supermj what are you doing? :P you post that in mostly every introduction thread :hohum:.
 
Status
Not open for further replies.

Similar threads

K
Replies
1
Views
830
K
  • Locked
Replies
0
Views
691
king_arthas
K
K
Replies
3
Views
1K
S
Replies
3
Views
939
Sgt.Soap
S
Back
Top