So ive been trying to create a quest system in Vjass since ive been slowly getting better at it and ive read around i should not use waits like i have in the trigger below so what im wondering is how would i go about doing what you can clearly see in the trigger ( Unit talks wait certain amount time clears message and he says something else and so on until quest starts) So can anyone please tell me how i can edit this into using timers or maybe even another way its driving me insane
Edit: Yes i Have TimerUltis In my map just dont know how to use them properly yet all tutorials ive found are outdated or i just couldnt make sense of them.
JASS:
function Trig_QuestSystem_Actions takes nothing returns nothing
local unit Qu = GetTriggerUnit()
local unit Pu = GetBuyingUnit()
local player P = GetOwningPlayer(Pu)
local integer Pi = GetPlayerId(P)
local string It = GetItemName(GetSoldItem())
local string Pun = GetUnitName(Pu)
local string S = ""
if It == "Accept" then//// Accept Item
if Qu == udg_QuestUnits[1] then//// Krillin
if Quest1Started[Pi] == false and Quest1Complete[Pi] == false then
set Quest1Started[Pi] = TRUE
set S = "Am I happy to see you " + Pun + " Do you have any idea where we are?"
call DisplayTextToPlayer(P,0,0,S)
call TriggerSleepAction(3)
call ClearTextMessages()
set S = "Blah Blah"
call DisplayTextToPlayer(P,0,0,S)
call TriggerSleepAction(2)
endif
endif
endif
endfunction
Edit: Yes i Have TimerUltis In my map just dont know how to use them properly yet all tutorials ive found are outdated or i just couldnt make sense of them.
Last edited: