• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

hi

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()) == '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
 
Level 7
Joined
Jul 5, 2007
Messages
338
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
  • Locked
hi
Replies
0
Views
401
king_arthas
K
Top