Building & Scripting > Scripting Board
Trigedit Help Requested
Fizban:
That site's lame. It's also about 4 years out of date. TBA Helpfiles > builderacademy's Oasis pages.
erwin:
Hey all, I have some problems with this script, as it does work, yet in another sense, doesn't really work.
--- Code: ---Name: 'Script 1', VNum: [46035], RNum: [ 1862]
Trigger Intended Assignment: Mobiles
Trigger Type: Speech, Numeric Arg: 100, Arg list: *
Commands:
<something else>
elseif %speech.contains(%answer%)%
<do something>
--- End code ---
Ok, %answer% is randomly generated, but saying %answer% only works in some cases. Let's say %answer% is 50.
Then, 'say 50' will not trigger the script.
However, 'say 123450' , 'say You look like 50 years old', 'say ABC50', 'say 50', will trigger the script.
The only thing I can gather is that the script works if there is at least one character before the value %answer%.
Is there a way such that 'say 50' will work? Would appreciate any help on this :)
Fizban:
if %speech% == %answer% || %speech.contains(%answer%)%
Kvetch:
--- Quote from: Fizban on May 11, 2008, 08:28:28 pm ---That site's lame. It's also about 4 years out of date. TBA Helpfiles > builderacademy's Oasis pages.
--- End quote ---
It's also easier for me to find things on there than to try to figure out what to request help on when I'm on TBA. I know, I could just go "Rumble, I'm looking for this, what to I ask for on help?" but I like to be able to find it myself. I'm sure there's some easy way.. wanna share it?
Fizban:
These are the only helpfiles you will almost 'ever' need.
help text var
help char var
help room var
help obj var
help trig-<intended>-<type> (ie. help trig-room-command)
Navigation
[0] Message Index
[*] Previous page
Go to full version