In one game I play, Lusternia, players are able to raise defenses such as magical shields and stat boosts, and indeed often do during combat.
Using the command raze <target> usually slashes away these defenses. If one does NOT do this, there can be some serious repercussions such as your attacks getting rebounded.
Now, I set up a targetting alias that sets up a specific target for use in other aliases.
If I see a particular trigger line like
"you perceive an aura of weapon rebounding materialize around *"
it would trigger raze @target.
Now there is ONE draw back to this, and one that is pretty serious in battles involving teams. If anyone who ISN'T my target ends up putting up their auras, it will set the trigger off to, and send the command to raze @target.
This is an issue, because Lusternia has a balance system which means that careless razing will cost me time and may get me killed.
TO illustrate my point further lets say I am hunting down a guy called John I would type
target John
Now, John becomes my target.
next, I go into John's room, and I'm followed by a friend.
Immediately upon entering, my friend puts up his shield.
My trigger sets off and I end up razing John, but John had no shield up. In the mean time that my balance is resetting John has some free swipes at me.
Quite irritating problem indeed.
I'm looking for as great refinement to this process as possible. Could I perhaps make it so that the trigger would only set off if it contained characters that matched with my target variable?
I don't know, I'm lost and new to lua but I seriously need a better razing trigger.
Using the command raze <target> usually slashes away these defenses. If one does NOT do this, there can be some serious repercussions such as your attacks getting rebounded.
Now, I set up a targetting alias that sets up a specific target for use in other aliases.
If I see a particular trigger line like
"you perceive an aura of weapon rebounding materialize around *"
it would trigger raze @target.
Now there is ONE draw back to this, and one that is pretty serious in battles involving teams. If anyone who ISN'T my target ends up putting up their auras, it will set the trigger off to, and send the command to raze @target.
This is an issue, because Lusternia has a balance system which means that careless razing will cost me time and may get me killed.
TO illustrate my point further lets say I am hunting down a guy called John I would type
target John
Now, John becomes my target.
next, I go into John's room, and I'm followed by a friend.
Immediately upon entering, my friend puts up his shield.
My trigger sets off and I end up razing John, but John had no shield up. In the mean time that my balance is resetting John has some free swipes at me.
Quite irritating problem indeed.
I'm looking for as great refinement to this process as possible. Could I perhaps make it so that the trigger would only set off if it contained characters that matched with my target variable?
I don't know, I'm lost and new to lua but I seriously need a better razing trigger.