by abraxsis » Mon Dec 01, 2014 1:52 am
Ok, I'm trying to set up a trigger named Ticket to set my destination when I buy a boat ticket. Eventually I will have an entry for all the boat trips, but this is what I have so far:
trigger statement -
- Code: Select all
^You now have a (.*) boat ticket.$
(pearl regex)
this is the script i have when the trigger fires
- Code: Select all
------- bh ah -------
if matches [2] == "blue"
then shipto = "bhah"
end
end
------- bh ss --------
if matches[2] == "silver"
then shipto = "bhss"
end
end
-------- ss ah -------
if matches[2] == "black"
then shipto = "ssah"
end
end
I'm getting the following error: Trying to activate trigger
Ticket failed, reason:
Lua syntax error:[string "function Trigger17(}..."]:11: "expected near 'end'.Any ideas/suggestions?
Abraxsis
--------------------------------------------------------------------------------------------------------
This space for rent. Terms available upon request.