Author Topic: Why isn't this working?  (Read 11065 times)

0 Members and 1 Guest are viewing this topic.

Offline Kvetch

  • Administrator
  • Hero Member
  • *****
  • Posts: 729
    • View Profile
    • Email
Why isn't this working?
« on: May 17, 2014, 07:12:08 pm »
I have a script where I"m trying to let the mob have a variety of things they can answer.  Now, I've seen this done and I've done tsearch on scripts to make sure I have the right structure.  My question is this:  Why is it when I use any word that is not checked in the script, it does a syslog error?

Trigger Type: Speech, Numeric Arg: 1, Arg list: *
Commands:
wait 1s
If %speech.contains(doing?)%

I have a whole list of words it's checking for, and each of them hit fine and work without the syslog error, but once I say anything other than what's listed instead of getting nothing, I get: [ Trigger: Angel Speech, VNum 28093, type: 0. unknown room field: 'contains ' ]

Looking at the way the scripts on the game port end, I don't see why this is happening.

Offline Kvetch

  • Administrator
  • Hero Member
  • *****
  • Posts: 729
    • View Profile
    • Email
Re: Why isn't this working?
« Reply #1 on: May 17, 2014, 07:33:16 pm »
The answer to the problem seems to be this:

Elseif does not equal elseif

I changed the first to the second and it works fine now without the syslog error.

So, special note to you scriptors.. yes, the scripting IS that particular about things.  :P

Offline Calypso

  • Administrator
  • Full Member
  • *****
  • Posts: 133
    • View Profile
    • Email
Re: Why isn't this working?
« Reply #2 on: May 19, 2014, 05:57:44 am »
That's crazy, haha! Way to be vigilant, Vetchy.
I get my energy from my Inner G.