Author Topic: Breaking Out Of Convo If Condition Not Met  (Read 338 times)

Legacy_Badwater

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Breaking Out Of Convo If Condition Not Met
« on: March 23, 2011, 10:00:55 am »


               Is there a function or command by way of scripting that will immediately end a conversation from the NPC end (that's how is would appear anyway)? For example, I have this section of a script:

 else
            {
                SendMessageToPC(oPC, "You lack the gold to do this.");
                return;
            }

Is there something I can insert into this script, after the message, to break out of the conversation?
               
               

               


                     Modifié par Badwater, 23 mars 2011 - 10:02 .
                     
                  


            

Legacy_ent.devil

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Breaking Out Of Convo If Condition Not Met
« Reply #1 on: March 27, 2011, 05:11:25 pm »


               Sorry, didn't see this post earlier.

Yes assign an action to the PC to start a blank conversation with themselves such as:

ActionDoCommand(AssignCommand(oPC, ActionStartConversation(oPC, "", TRUE, FALSE)));