• 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] Quest Log Created Whit Jass

Status
Not open for further replies.
Level 9
Joined
Aug 15, 2007
Messages
261
trigger gg_trg_Quest_List = null


function Trig_Quest_List_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_015", "TRIGSTR_016", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
function InitTrig_Quest_List takes nothing returns nothing
set gg_trg_Quest_List = CreateTrigger( )
call TriggerAddAction( gg_trg_Quest_List, function Trig_Quest_List_Actions )
endfunction

It Shud Be somethink like that But I can't Figure it out
can some one help me?
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
Ok, lets analyze what you posted here then (but I will use jass tags, because that's what they're for!):

JASS:
trigger gg_trg_Quest_List = null
//this is the value of that global
//variable which later holds the trigger Quest List,
//now the value is none (null), which is logical, so
//I don't have clue why did you put that here then

function Trig_Quest_List_Actions takes nothing returns nothing
    call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_015", "TRIGSTR_016", "ReplaceableTextures\\CommandButtons\\BTNAmbush.bl p" )
//this is a function that creates a required
//discovered quest, in GUI it's something like
//"Quest - Create quest" or something. "TRIGSTR_015"
//is the thing you get after converting from GUI to JASS,
//it's a string that's inside the engine and there is no possible
//way I can find out what it holds (same for "TRIGSTR_016")
endfunction
function InitTrig_Quest_List takes nothing returns nothing
    set gg_trg_Quest_List = CreateTrigger( )
    call TriggerAddAction( gg_trg_Quest_List, function Trig_Quest_List_Actions )
endfunction

// function InitTrig_Quest_List is used to initialize the
//Quest List trigger, moreover, that's the function where
//gg_trg_Quest_List gets a value. First it's set to an
//empty trigger, than TriggerAddAction function adds
//the action to the Quest List trigger. Since I don't see
//any event here, the event is either map initialization or none.
//Note: Every trigger has to have InitTrig_<trigger name> function,
//otherwise the compiler won't let you save the map like that.
//Same thing happens if you rename that function.

So is everything clear then?

EDIT: Still not sure what you wanted
 
Last edited:
Level 13
Joined
Nov 22, 2006
Messages
1,260
Arghhh I don't need your map! I was just making a point to Pooty! What I wanted to say with that is when your doing stuff in JASS, you should replace those TRIGSTR_s with the actual text. Then you'll be able to know what it says there, otherwise you would have to remember.

What do you mean Quest Log F9 isn't working? Do you mean that there is no quest there or what? Anyways, that could easily be achieved with GUI, you don't have to bother with JASS here. Doesn't CreateQuestBJ create the quest? I don't know, I haven't worked with quests much.....
 
Level 9
Joined
Aug 15, 2007
Messages
261
Arghhh I don't need your map! I was just making a point to Pooty! What I wanted to say with that is when your doing stuff in JASS, you should replace those TRIGSTR_s with the actual text. Then you'll be able to know what it says there, otherwise you would have to remember.

What do you mean Quest Log F9 isn't working? Do you mean that there is no quest there or what? Anyways, that could easily be achieved with GUI, you don't have to bother with JASS here. Doesn't CreateQuestBJ create the quest? I don't know, I haven't worked with quests much.....
I trayed Gui but I can't do it can you tell me how?
and I meen F9 Can't be clicked like F10 Game menu
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
  • Quest
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Quest - Create a Required quest titled Some Quest with the description You have to......, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
This is working fine for me, F9 works also.
 
Level 9
Joined
Aug 15, 2007
Messages
261
  • Quest
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Quest - Create a Required quest titled Some Quest with the description You have to......, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
This is working fine for me, F9 works also.
I trued that an F9 still can't be clicked so can we get back to jass?
 
Status
Not open for further replies.
Top