Search found 6 matches

by NoRAd
Sun Jun 05, 2011 7:09 pm
Forum: Help Forum
Topic: Tarot System
Replies: 12
Views: 7411

Re: Tarot System

Manni wrote: trigger
Code: [show] | [select all] lua
send("fling " ..tarotCard " at " ..tarotTarget);
disableTrigger("Throw");

I notice you didn't concat after the variable tarotCard, did you fix that too?
by NoRAd
Sun Jun 05, 2011 3:28 pm
Forum: Help Forum
Topic: Tarot System
Replies: 12
Views: 7411

Re: Tarot System

In the one you had posted before, you had matches[2] going to tarotTarget, you fixed that, right?

Another idea is setting tarotCard triggered with the line where you charge it.
by NoRAd
Sat Jun 04, 2011 10:37 pm
Forum: Help Forum
Topic: Tarot System
Replies: 12
Views: 7411

Re: Tarot System

Ok, Add the line
Code: [show] | [select all] lua
tarotCard = matches[2][\lua] anywhere in your alias, or if you're using the two alias version I set up, put it in the one that pulls the card out and charges it.
by NoRAd
Sat Jun 04, 2011 2:57 am
Forum: Help Forum
Topic: Tarot System
Replies: 12
Views: 7411

Re: Tarot System

I think I see the problem. It looks like your regex was forcing a target. You also had matches[2] sent to tarotTarget and then used as the card. I was thinking you would have two aliases, one for targeting, and one to charge/fling. Here's your version tweaked slightly. ^tarot (\w+) ?(\w+)?$ if match...
by NoRAd
Sat Jun 04, 2011 12:07 am
Forum: Help Forum
Topic: problems compiling Mudlet from source code
Replies: 49
Views: 45146

Re: problems compiling Mudlet from source code

I noticed the thing Vadi pointed out after trying a few things. A quick way around that might be to use ^h$ and ^m$
by NoRAd
Fri Jun 03, 2011 10:30 pm
Forum: Help Forum
Topic: Tarot System
Replies: 12
Views: 7411

Re: Tarot System

I don't know what alias you're using to target the player, but if you can modify this to fit, I think it might work if matches[2] == nil then tarotTarget = "ground" else tarotTarget = matches[2] end or you could capture the card when you charge it and enable the triggers for either ground ...