• 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.

[JASS] Generated Script Questions

Status
Not open for further replies.
Level 16
Joined
Mar 3, 2006
Messages
1,564
When I opened the map.j file I found something that I don't understand.

1) I created 2 triggers: Untitled Trigger 001 and Untitled Trigger 002.

I converted Untitled Trigger 001 to custom text and then removed all the text when the trigger is converted.

The other one was left empty events, conditions and actions.

now to the most important part, the map.j:
JASS:
//***************************************************************************

//*

//*  Triggers

//*

//***************************************************************************



//===========================================================================

// Trigger: Untitled Trigger 001

//===========================================================================

//TESH.scrollpos=-1

//TESH.alwaysfold=0

//===========================================================================

// Trigger: Untitled Trigger 002

//===========================================================================

function Trig_Untitled_Trigger_002_Actions takes nothing returns nothing

endfunction



//===========================================================================

function InitTrig_Untitled_Trigger_002 takes nothing returns nothing

    set gg_trg_Untitled_Trigger_002 = CreateTrigger(  )

    call TriggerAddAction( gg_trg_Untitled_Trigger_002, function Trig_Untitled_Trigger_002_Actions )

endfunction



//===========================================================================

function InitCustomTriggers takes nothing returns nothing

    call InitTrig_Untitled_Trigger_001(  )

    call InitTrig_Untitled_Trigger_002(  )

endfunction

in the line call InitTrig_Untitled_Trigger_001( ) the function InitTrig_Untitled_Trigger_001( ) don't exist, how is it possible to call it when it don't exist without causing any errors ?
 
Level 3
Joined
Jan 31, 2012
Messages
42
It's the code that hadn't parsed by JassHelper yet. Open your map with any MPQ-archiver and extract "war3map.j". In this file that line will be comment.
JASS:
//Function not found: call InitTrig_Untitled_Trigger_001(  )
 
Status
Not open for further replies.
Top