I'm working on a program to create conversations, as you can see, it's not nearly completed. once the conversation "tree" has been set up, I will code in a process that the computer will create a conversation, and save it into a function into an include file, for later use in my game. I still can't get the quit thing to work. However, the check function for some reason updates the text and shows it. Here's my current code.
AppTitle "SW:WRH Conversation creator"
launcher$=""
funcname$=""
npc1$=""
r1$=""
r2$=""
r3$=""
npc2$=""
Global quit=0
Graphics3D 1280,1024,32,2
SetBuffer BackBuffer()
Function check()
If (funcname$="quit") Or (npc1$="quit") Or (r1$="quit") Or (r2="quit") Or (r3="quit") Then quit=1
End Function
While quit=0
RenderWorld
;createconv
launcher$=Input$("WELCOME TO THE SW:WRH CONVERSATION CREATOR. FOLLOW GIVEN INSTRUCTIONS. TYPE 'quit' AT ANY TIME TO QUIT WITHOUT SAVING YOUR CONVERSATION. HIT ENTER TO CONTINUE")
funcname$=Input$("What would you like the Function name For this conversation To be? ")
check
npc1$=Input$("What would the first thing the NPC says be? ")
Text 1000,15,"npc1= " + npc1
check
r1$=Input$("What do you want response1 to be? ")
Text 1000, 30,"r1= " + r1
check
r2$=Input$("What do you want response2 to be? ")
Text 1000, 45,"r2= " + r2
check
r3$=Input$("What do you want response3 to be? ")
Text 1000, 60,"r3= " + r3
check
Flip
Wend
End
AppTitle "SW:WRH Conversation creator"
launcher$=""
funcname$=""
npc1$=""
r1$=""
r2$=""
r3$=""
npc2$=""
Global quit=0
Graphics3D 1280,1024,32,2
SetBuffer BackBuffer()
Function check()
If (funcname$="quit") Or (npc1$="quit") Or (r1$="quit") Or (r2="quit") Or (r3="quit") Then quit=1
End Function
While quit=0
RenderWorld
;createconv
launcher$=Input$("WELCOME TO THE SW:WRH CONVERSATION CREATOR. FOLLOW GIVEN INSTRUCTIONS. TYPE 'quit' AT ANY TIME TO QUIT WITHOUT SAVING YOUR CONVERSATION. HIT ENTER TO CONTINUE")
funcname$=Input$("What would you like the Function name For this conversation To be? ")
check
npc1$=Input$("What would the first thing the NPC says be? ")
Text 1000,15,"npc1= " + npc1
check
r1$=Input$("What do you want response1 to be? ")
Text 1000, 30,"r1= " + r1
check
r2$=Input$("What do you want response2 to be? ")
Text 1000, 45,"r2= " + r2
check
r3$=Input$("What do you want response3 to be? ")
Text 1000, 60,"r3= " + r3
check
Flip
Wend
End