Tarot System
Tarot System
I'm completely new to scripting and I'm trying to script a Tarot system that draws the card, charges it, and then flings it at the target. As it is I can get the system to work up to when I target a player, but when I don't target a player I want the target to be the ground. I put together something I thought would work, but it is failing horribly. Also I'm trying to set this up so that when I use Hierophant it automatically sends my order to the player on balance recovery, but this isn't working either. Any Ideas?
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
Edit: Whoops, forgot to put ground in quotes, Fixed
Edit2: possible regex for targeting alias: ^ttar ?(\d+|\w+)?$
or you could capture the card when you charge it and enable the triggers for either ground or targeted that way?
Edit: Whoops, forgot to put ground in quotes, Fixed
Edit2: possible regex for targeting alias: ^ttar ?(\d+|\w+)?$
Last edited by NoRAd on Fri Jun 03, 2011 11:38 pm, edited 2 times in total.
Re: Tarot System
Thats exactly what I have but for some reason I can't get it to work.
Re: Tarot System
alias:
trigger
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.
Here's your version tweaked slightly.
separate alias version (Slightly less typing in the heat of battle)
Re: Tarot System
Thank you, but it seems that the issue is with the trigger, it can't fetch tarotCard. I recently reloaded my program, and my script that did work no longer does... it's frustrating...
Re: Tarot System
Ok, Add the line
Re: Tarot System
I had already added that line to the alias... and the problem persisted... I'm not sure if it's a bug in 2.0 r5 or not
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.
Another idea is setting tarotCard triggered with the line where you charge it.
Re: Tarot System
Yes, I fixed that, I even used tarotCard to get the card from the deck and charge it... which worked, but Throw can not fetch the global variable