Not sure what it's called, I just need a script to change how spells are cast
Posted: Wed Sep 19, 2018 3:22 am
I think at one point i asked this question and I didn't give enough info to figure it out and i was way to narrow minded on how i wanted it done and couldn't even get across what i wanted, but this time I have come more prepared and I am more open minded.
I play Avalon The Legend Lives, in it there are 3 ways a spell can be cast. Here are the different ways.
chant <spell>;cast <spell> [parameters]
point <spell> [parameters]
read spellbook <spell> [parameters]
The parameters can be a target, yourself as target, target + direction, just direction, or no parameters at all.
What i want is a script that allows me to use the same alias to choose which way I cast the spell and the parameters. Some that needs a target I can also use to cast on myself for a defense, like making myself blind.
this is one of the ways i have been doing it now, but I can only do two types of casting and can't make the parameters change if the script is using both types.
That is one of the few i have been using, but it's limited, especially when I want to have one change parameters, like hit myself with it.
Now, you can also cast a spell as long as you have already chanted it, and i have a prompt to show me what my last chant was, I have a trigger to make that a variable, though for some reason they decided to make the last chant text all caps, like instead of it saying fireball, it shows FIREBALL. I was wanting to also add in there that if i want to chant the spell that if my last chant was that spell, then it just casts it, but if it wasn't, then it will just chant it and i will have to hit the alias a second time to cast it, that way if i am in a constricted mist and can only use one command aliases, it will still work. However if that isn't possible, then it isn't possible. Thank you all and if there are any questions, I will try and answer them, I am sure i covered everything. I only know very little about scripting, or lua for that matter, or even coding, just want little i have learned over the past year or so, which isn't much. So I apologize now for when i asked a million questions when you do try and help me lol.
I play Avalon The Legend Lives, in it there are 3 ways a spell can be cast. Here are the different ways.
chant <spell>;cast <spell> [parameters]
point <spell> [parameters]
read spellbook <spell> [parameters]
The parameters can be a target, yourself as target, target + direction, just direction, or no parameters at all.
What i want is a script that allows me to use the same alias to choose which way I cast the spell and the parameters. Some that needs a target I can also use to cast on myself for a defense, like making myself blind.
this is one of the ways i have been doing it now, but I can only do two types of casting and can't make the parameters change if the script is using both types.
That is one of the few i have been using, but it's limited, especially when I want to have one change parameters, like hit myself with it.
Now, you can also cast a spell as long as you have already chanted it, and i have a prompt to show me what my last chant was, I have a trigger to make that a variable, though for some reason they decided to make the last chant text all caps, like instead of it saying fireball, it shows FIREBALL. I was wanting to also add in there that if i want to chant the spell that if my last chant was that spell, then it just casts it, but if it wasn't, then it will just chant it and i will have to hit the alias a second time to cast it, that way if i am in a constricted mist and can only use one command aliases, it will still work. However if that isn't possible, then it isn't possible. Thank you all and if there are any questions, I will try and answer them, I am sure i covered everything. I only know very little about scripting, or lua for that matter, or even coding, just want little i have learned over the past year or so, which isn't much. So I apologize now for when i asked a million questions when you do try and help me lol.