collapse

* Notice

Important notice (31 July): We have recently recovered from a nearly two day downtime due to an attack. No data was lost or stolen but the server has been reinstalled as a precaution. Please let us know if you encounter any issues. We apologise for the unacceptable inconvenience. Please read here for more information.

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Need some help with dialog exceptions, please.  (Read 1239 times)

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Need some help with dialog exceptions, please.
« on: April 26, 2011, 05:17:10 pm »
Anyone know if some type of OR command is possible in a dialog, so a Thaumaturgy or Dominate user could us a selected line?
This is an example...
{    Dominate 1 (some OR command here) Thaumaturgy 1    }


Thanks.

Edit: Also is it possible to have more than 4 dialog lines for the PC to choose from at one time?

Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

Offline ColonelAlias

  • Methuselah
  • ****
  • Posts: 327
  • Reputation: +368/-1
Re: Need some help with dialog exceptions, please.
« Reply #1 on: April 26, 2011, 05:42:21 pm »
Or doesn't work with those built in functions (in fact, "and" only "works" with the bitwise & ). Yes, it's a pain

You can probably have the same effect by repeating the conditions and using the limitset function.

To quote the guide:
Quote
      You wont see many "or" statements throughout the dialogs because you can
      achieve the same effect by using 2 lines.

          {1}{M}{F}{5}{(pc.armor==3}
          {2}{M}{F}{5}{(npc.classname=="npc_VVampire"}

      But what if both conditions are true? You don't want the same dialog line
      appearing twice. To solve this issue, you may need to add additional logic.
      Also see the common examples below for the function LimitSet(). LimitSet()
      is a custom function that only returns true once for a given set.

          {1}{M}{F}{5}{(pc.armor==3 and LimitSet(1,2)}
          {2}{M}{F}{5}{(npc.classname=="npc_VVampire" and LimitSet(2,2)}


The guide also has a neat trick to make dialogs with more than 4 options, but 1-2 of them will be occupied by a "More.." option at a time.

Resuming, read the modding guide, "Dialogs" section.
https://docs.google.com/Doc?id=dhgs89mq_12hbmgkpd9
« Last Edit: April 26, 2011, 05:45:49 pm by ColonelAlias »

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Re: Need some help with dialog exceptions, please.
« Reply #2 on: April 26, 2011, 06:08:31 pm »
Thanks for the link ColonelAlias, it looks like an amazing guide.
Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

 

SimplePortal 2.3.7 © 2008-2020, SimplePortal