Vote for Islands of Myth on Top Mud Sites
firstprevious1nextlast
attacking/defendingTue Aug 26 22:01:23 2014 MST
Vor
admin
offline
avatar
I want to preface this with the following statement: I have done about as much work on this as I am going to (other than fixing the mandatory game crashing bug). I realize that there are several other situations in which this should behave slightly better, and I don't really want to get super nit-picky with the code and try to deal with all that. To that end, this will be a very simple and quick change.



I added 2 arguments to the 'combat' command. They are "attack" and "defend". They are used by typing 'combat attack' or 'combat defend'.



If you type 'combat attack', it will toggle your attack setting (there's a message to let you know which it's toggled to). This toggled setting will control whether or not you swing in melee, whether or not you riposte (with either the riposte skill or the chi of yin effect), and whether or not you will get your special MA attacks if you're an MA.



If you type 'combat defend', it will toggle your defend setting (there's a message to let you know which it's toggled to as well). This toggled setting will control whether or not you parry, dodge, deflect a blow with your roostaff or twigshield, or deflect a blow with your MA defenses. Avoid hits will still do what it does now.



None of this will affect your ability to cast spells or use skills. You can attack your foe with skills/spells and not enter combat with melee with this current code.



I am not going through the rigamarole of making it so that your special attacks or special defense effects from eq / prots (other than what I did with chi of yin) will be affected. Frankly, there are a number of 'special defense' effects that could be considered attacks, and a fair number of 'special attack' effects that could be considered healing / defensive. If you don't want those effects, avoid doing whatever it is that causes them to happen.



I am also not going to change shifter's dragon/avian forms defensive dodges (or in dragon's case, offensive responses). If you want the real reason, it's that I'm too lazy. If you want a thematic reason, you're too animalistic to avoid doing the more base and instinctual responses to combat.



I am also not going to add this code into familiars. If Snoop is ambitious, maybe he will add a flag to necro fams. I will not. As far as I am concerned, other familiars are too independant and animalistic to avoid responding to combat in the normal fashion.



While you can start toggling your attack/defense settings immediately, the combat effects will not take effect fully until there has been a reboot.



Keep in mind that the setting saves over new bodies, switched bodies, reincing, reboots, etc. Keep an eye on it. You are in charge of this, there will be no reimbursements if you are found to have been the reason you died.



The default value is to attack and defend normally. The first time you interact with the toggle, you will be turning it off.



If you type 'combat status', it will tell you if you are attacking and defending. As I pointed out, there is a message when you toggle the effect at the time that you toggle it. There are no regular reminders otherwise.



Mudmail me any bugs. I'll try to fix them quickly.
firstprevious1nextlast