Using wildcards

Posted by Happyhellodude on Sat 20 Jun 2009 02:40 AM — 3 posts, 16,614 views.

#0
I can't seem to use any wildcards.
I don't know how long the string will be and the script gets caught on the second word say if

* = a pair of shoes

I would get the error

Compile error
World: World1
Immediate execution
[string "Trigger: "]:3: ')' expected near 'pair'

This is my trigger:
You take * from a canvas backpack.

This is the script to it:
Note (%1)
USA #1
When sending to script, you need to put "quotes" around the variable.

Mushclient basically does a search and replace of the %1 with the text from the trigger, and then sends the whole thing to Lua to compile...

so

Note(a pair of pink fluffy bunny slippers)


will give the same "Expected ) near pair" error message, because it's not in quotes.
#2
Saweet.
Thanks alot.