I am trying to set up a trigger that gags a line and substitutes it with a line including a variable. Here is what I want to do:
ex. attack:
You launch a powerful uppercut at Kairuni.
You connect to the head!
In this MUD each attack does a certain amount of limb damage and I would like to substitute the "You connect to the head!" with something like "HEAD DAMAGE [#/7]" in order to better track damage to each body part. At the very least, I'd like to output something such as this after each attack that connects.
My problem is I'm not sure how to store numbers in variables and increment them based on whether or not I hit the limb or not. I also don't know to send variables as output to the MUD.
To add on to the problem, kicks do 2 points of limb damage and punches do 1 point and each attack combo has 1 kick and 2 punches. Any help would be greatly appreciated!
ex. attack:
You launch a powerful uppercut at Kairuni.
You connect to the head!
In this MUD each attack does a certain amount of limb damage and I would like to substitute the "You connect to the head!" with something like "HEAD DAMAGE [#/7]" in order to better track damage to each body part. At the very least, I'd like to output something such as this after each attack that connects.
My problem is I'm not sure how to store numbers in variables and increment them based on whether or not I hit the limb or not. I also don't know to send variables as output to the MUD.
To add on to the problem, kicks do 2 points of limb damage and punches do 1 point and each attack combo has 1 kick and 2 punches. Any help would be greatly appreciated!