function checkCondition()
queststate = getQuestStatus("Demonstration");
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
end
end
function checkCondition()
queststate = getQuestStatus("Demonstration");
if queststate == "incomplete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("incomplete"));
end
I don't think you understand what a function is.
I tried to think of a way to explain it but I came up with nothing.
Basically when you do this
function Somefunctionname()
end
You create the function with the name of Somefunctionname, it won't actually do the code unless you later call the function using
Somefunctionname()
If you just want to do some code where you are writing it then don't create a function and just do the code, using your code as an example.
Code: Select all
queststate = getQuestStatus("Demonstration");
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
end
if queststate == "incomplete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("incomplete"));
end
so without the creation of the functions it will just do the code right there and then.
Also please try to use code tags when posting code.