XxShadyxX
I abused the rep system.
- Reaction score
- 81
Okay, so I am trying to make my GUI trigger a lot easier to modify,
NOTE: I am using UMS so I can use Jass in my GUI triggers
So I made a library with a function:
And when I call it I want it to start my other trigger, a GUI one, and then all the things I set for the QuestInit will be able to be applied there.
And all I have to do is in map int call a custom script and then it will run the function above then in my other trigger has GUI hashtables and then add them to the hashtables.
For some reason I got many errors.
So please look at my code and tell me if you see anything wrong:
and then for my hashtables it says that those variables don't exist. So how can I fix this and what am I doing wrong?
NOTE: I am using UMS so I can use Jass in my GUI triggers
So I made a library with a function:
JASS:
And when I call it I want it to start my other trigger, a GUI one, and then all the things I set for the QuestInit will be able to be applied there.
And all I have to do is in map int call a custom script and then it will run the function above then in my other trigger has GUI hashtables and then add them to the hashtables.
For some reason I got many errors.
So please look at my code and tell me if you see anything wrong:
JASS:
library SystemQuestInit
function QuestInit takes integer q, unit qunit, unit qcom, string name, string msg, string cmsg, integer lvl, boolean type, string stype, integer gol, integer tal, integer exp, integer amo returns nothing
call ConditionalTriggerExecute( gg_trg_InitQuests )
endfunction
endlibrary
JASS:
scope IQ initializer Init
function Actions takes nothing returns nothing
call QuestInit(1, gg_unit_Ntin_0001, gg_unit_Ntin_0001, Test, Test, Test, 1, true, kill, 0, 0, 0, 0)
endfunction
//===========================================================================
function Init takes nothing returns nothing
set I = CreateTrigger( )
call TriggerAddAction( I, function Actions )
endfunction
endscope
and then for my hashtables it says that those variables don't exist. So how can I fix this and what am I doing wrong?