• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Hi

Status
Not open for further replies.
Level 11
Joined
Dec 31, 2007
Messages
780
Hi im darkrider i have to say that im not so nw here... but i never did an account.. :p

until now... coz im editing a great map and im having a huge problem with a bugg that i cant solve by my self... (yes i gave up :S)

ive been trying everything i coul to solve it... but anything worked...

so here i am...

ill try to find the solution i seek posted here... if it is not.. soon youll see my own first post... :p


glad of being here


Darkrider
 
Level 12
Joined
Jul 11, 2007
Messages
642
JASS:
function Trig_Melee_Initialization_Func001C takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetTrainedUnit()) == 'darkrider' ) ) 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(darkrider), 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.

Similar threads

Top