I am trying to make new event NPC I' almost done but I have 1 minor problem when it does all what I wanted to do it the NPC won't close it's message window my script goes like this
// ----------------------------------- STATE: ON -------------------------------------
on:
mes "[ ^336699Warper^000000 ]";
mes "Do you want to stop me warping?";
menu "Yes, Stop warping",yesStop,"No, Wait",noStop;
yesStop:
next;
set $state,0;
set $qstate,0;
delwaitingroom;
mes "[ ^336699Warper^000000 ]";
mes "Ok, stopping now";
if (condition)
{
goto yesWin;
}
else if (condition)
{
goto noWin;
}
else
{
goto draw;
}
noStop:
next;
mes "[ ^336699Warper^000000 ]";
mes "Ok talk to me when you want to stop me warping";
close;
// ---------------------------------- WARP PLAYERS ---------------------------------
yesWin:
next;
mapwarp "map","map2",xxx,yyy;
sleep 5000;
mapannounce "map","message",0;
sleep 3000;
mapannounce "map","message",0;
next;
close;
noWin:
next;
mapwarp "map","map2",xxx,yyy;
sleep 5000;
mapannounce "map","message",0;
sleep 3000;
mapannounce "map","message",0;
next;
close;
draw:
next;
mapwarp "map","map2",xxx,yyy;
mapwarp "map","map2",xxx,yyy;
sleep 5000;
mapannounce "map","message",0;
sleep 3000;
mapannounce "map","message",0;
next;
close;
when I go yesStop it will do all the commands I put there even the conditional statement but it won't close the final window where the NPC says "Ok, stopping now"
hope someone can help me and thanks in advance for those who will try to help
Question
cozzy09
I am trying to make new event NPC I' almost done but I have 1 minor problem when it does all what I wanted to do it the NPC won't close it's message window my script goes like this
when I go yesStop it will do all the commands I put there even the conditional statement but it won't close the final window where the NPC says "Ok, stopping now"
hope someone can help me and thanks in advance for those who will try to help
Edited by cozzy09Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.