Error - Need Help!

Lord

TH.net Regular
Reaction score
18
Code:
function Trig_Cd21_Conditions takes nothing returns boolean
    if ( not ( GetClickedButtonBJ() == udg_Decision2button[1] ) ) then
        return false
    endif
    return true
endfunction

function Trig_Cd21_Actions takes nothing returns nothing
    call DisableTrigger( gg_trg_Xtra )
    call DisableTrigger( gg_trg_Xtra2 )
    call PauseAllUnitsBJ( false )
    call IssueTargetOrderBJ( GetLastCreatedUnit(), "attack", gg_unit_H60L_0001 )
    call TriggerSleepAction( 2,00 )
    call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H605_0002, "TRIGSTR_532", null, "TRIGSTR_533", bj_TIMETYPE_SET, 3,00, true )
    call TriggerSleepAction( 2,00 )
    call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
    call TriggerSleepAction( 5.00 )
    call CustomDefeatBJ( Player(0), "TRIGSTR_534" )
endfunction

//===========================================================================
function InitTrig_Cd21 takes nothing returns nothing
    set gg_trg_Cd21 = CreateTrigger(  )
    call TriggerRegisterDialogEventBJ( gg_trg_Cd21, udg_Decision2text )
    call TriggerAddCondition( gg_trg_Cd21, Condition( function Trig_Cd21_Conditions ) )
    call TriggerAddAction( gg_trg_Cd21, function Trig_Cd21_Actions )
endfunction

Hey guys!

Can you tell me what the Hell is this?

Thank You... :)

Now I get about 100 errors when I try to save my campaign :( .
 

Quauhtli

I have the right to remain silent.
Reaction score
62
i had the same problem (probably not exactly the same as you have now) with my map, i solved it by first Initially Offing all the triggers and then one by one turn then back on (perhaps it was turning them off, and not initailly off... but i forgot)

btw, what you see there is jass, if you learn jass you might know how to fix it yourself...

oh and finally, please dont double post...
 

SFilip

Gone but not forgotten
Reaction score
633
More info pls.
What's the first error on the list? What line does it appear in?
What are the last changes you made (the ones that caused this)?
 

Lord

TH.net Regular
Reaction score
18
Sorry for the double post :eek:.

I know what was the problem and I fixed it I think. I'm making a 'decision' system and the WE had some problems with my dialog buttons (tryed to put 2 different dialogs into one trig. think that was the problem :cool: )
Anyway thanks for the help. Duh I was afraid of I'll have to start the whole campaign again coz the file corrupted or sumthing :eek: .

Again: thank you!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top