Stygian help

Post Reply
User avatar
Omni
Posts: 131
Joined: Fri Feb 12, 2010 10:26 am

Stygian help

Post by Omni »

Since I hope to start on a system in a few weeks, I've been getting help on the mudlet ircs and I'm at a roadblock and Demmonic asked me to screenshot one problem so here it is. I'll also continue to use this for any further help.
Attachments
stygianerror.png

Yugosan
Posts: 4
Joined: Wed Mar 31, 2010 11:33 am

Re: Stygian help

Post by Yugosan »

you need to put the string you have in sub. into pattern.

(also the pattern line should be renamed to something like command/stuff you write/ect since, pattern is also used in triggers but there it is something you catch from the mud and not something you write yourself, well mostly)

User avatar
Omni
Posts: 131
Joined: Fri Feb 12, 2010 10:26 am

Re: Stygian help

Post by Omni »

After it being mentioned by vadi, I noticed that i accidentally put the pattern in the substitution field.

User avatar
Omni
Posts: 131
Joined: Fri Feb 12, 2010 10:26 am

Re: Stygian help

Post by Omni »

In need of more help. Demonnic was helping me well enough, but then he disappeared.
This is the script

Code: Select all

Stygian_doChase()
or lover,_ in pairs(in_love_with) do
  Stygian_chaser([[send("reject ]] .. lover .. [[")]], {needsBal = false})
  in_love_with[lover] = nil
end
it triggers of the regaining equilibrium.
the point of this is to reject any person added to my allies list by the love potion.

This is the error I keep getting.
Lua syntax error:[string "function Trigger384()..."]:3: unexpected symbol near 'or'

naftali
Posts: 138
Joined: Wed Jan 20, 2010 8:42 pm

Re: Stygian help

Post by naftali »

'or' should be 'for', in your second line.

Also, if your in_love_with table is just a table of values like { "this", "is", "a", "table" } as opposed to { this = "is", a = "table" } then you probably want to use:
for _,lover in ipairs(in_love_with) do

etc.

Post Reply