Difference between revisions of "Set qt exit"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
(Example)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
  
 
==Use==
 
==Use==
Used to determine what else happens when cancelling a quest via the Guild Lady.
+
Used to determine what else happens when exiting the quest.
  
 
==Example==
 
==Example==
 
  <span style='font-size:12px;font-family:courier'>
 
  <span style='font-size:12px;font-family:courier'>
 
  <span style='color:blue'>0:    </span><span style='color:red'>set_episode </span>00000000 <span style='color:orange'>//Episode set to 1.</span>
 
  <span style='color:blue'>0:    </span><span style='color:red'>set_episode </span>00000000 <span style='color:orange'>//Episode set to 1.</span>
  <span style='color:green'>      set_qt_cancel </span>3 <span style='color:orange'>//Jumps to function 3 after you confirm you want to cancel the quest with the Guild Lady.</span>
+
  <span style='color:green'>      set_qt_cancel </span>3 <span style='color:orange'>//Jumps to function 3 when the quest is exited.</span>
 
  <span style='color:green'>      ret </span>
 
  <span style='color:green'>      ret </span>
 
  <span style='color:blue'>3:    </span><span style='color:green'>window_msg </span>'You have exited the quest.' <span style='color:orange'>//Display a window message showing a line from everyone's favourite hit song.</span>
 
  <span style='color:blue'>3:    </span><span style='color:green'>window_msg </span>'You have exited the quest.' <span style='color:orange'>//Display a window message showing a line from everyone's favourite hit song.</span>

Latest revision as of 07:13, 23 May 2014

Syntax

Syntax: set_qt_exit Function

  • Function = Function to jump to when the quest is exited

Use

Used to determine what else happens when exiting the quest.

Example


0:     set_episode 00000000 //Episode set to 1.
       set_qt_cancel 3 //Jumps to function 3 when the quest is exited.
       ret 
3:     window_msg 'You have exited the quest.' //Display a window message showing a line from everyone's favourite hit song.
       add_msg 'So I doubt you'll see this.' //And another line, because why not?
       winend  //Closes the window message.
       ret 

Also see

window_msg, add_msg, winend, ret,