Author Topic: OR in Scripting  (Read 898 times)

Offline Bill Bisco

  • Planewalker
  • *****
  • Posts: 30
OR in Scripting
« on: September 19, 2015, 03:18:27 PM »
Is there an OR anywhere in Scripting?

For example I want to do the following:

IF ~OR(InParty("Xan"),InParty("O#Xan"))~ THEN BEGIN XanConversation.

Since there are multiple versions of Xan, I want my modded character to be able to interact with any of them.  I could duplicate the entire conversation, but that takes up more file space and becomes more cumbersome as you start adding in more variables.


Nevermind, my example isn't good.  Still, does OR exist or do we literally have to copy the same dialogues or scripts if we have a case of OR?
« Last Edit: September 19, 2015, 03:31:44 PM by Bill Bisco »

Offline Magus_BGforge

  • Planewalker
  • *****
  • Posts: 75
Re: OR in Scripting
« Reply #1 on: September 19, 2015, 07:01:02 PM »
Not sure what do you mean. OR is there.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: OR in Scripting
« Reply #2 on: September 20, 2015, 03:01:52 AM »
Code: [Select]
IF ~OR(2) InParty("Xan") InParty("O#Xan")~ BEGIN XanConversation

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: