You read a book of combat by thorn at 04:09 on Fri 03 Nov 2006 editcommand called attack
Written by
thorn at 02:48 on Tue 05 Dec 2006
editattack {foe}
This causes you and your foe to fight till death.
Notes:
- You may not attack anyone while in a location whose material is 'sanctuary'.
- You can only attack if you and the foe are both alive (health > 0).
- You can only attack foes that are made of ''living'' material.
- The battle ends if either leave the room or die
- If you have more than one weapon wielded, only one will be used in battle
- There is no effect from wielding or not except in the text shown during battle.
Weapon notes:
- The default weapon is your fist, with damage of 1.
- If you are wielding a weapon, the damage will match the weapon's health/10.
- Once in a while during a weapon's hit, it can do a special attack. These are objects that you place inside the weapon. During a special attack, one of these objects is chosen at random and set as follows:
slot1 = the person wielding the weapon
slot2 = the person hit by the weapon
slot3 = the weapon's id.
counter = 0
loc = the location of the battle
You may want to set your object loc back to the weapon when it is done with the special attack.
For a weapon example,
find magical flaming sword (it's health is 2)
There is a fire spell, a heat blast spell, and a critical cut inside it.
(Later, I hope to incorporate armor properties)
This is 5 years, 7 months, 11 days, 7 hours and 36 minutes old
command called cast
Written by
thorn at 02:03 on Wed 06 Dec 2006
edit cast - To get a list of spells available
or
cast {spell}
or
cast {spell} at {target}
read the command called castread the info about magicIf a spell requires a target and none is specified, then it will be cast at you.
Note: If there is a battle going on in your (or your target's) location, then casting a spell will do nothing but prepare the spell for your next hit. To make it happen, you must join the battle.
Trigger words:
This command sends a 'cast' with $second = the spell and $target = the object at which the spell is cast.
Spells/enchantments currently send the following trigger words as appropriate:
heal, burn, freeze, shock, bleed
vampyric drain: sends 'harm' and 'heal' to the appropriate targets.
If you are coding a spell, please consult the above list before creating a new word. If you still need to make a more appropriate word then let Thorn know so he can update the above list.
This is 5 years, 7 months, 10 days, 8 hours and 21 minutes old
command called cpr
Written by
thorn at 02:18 on Fri 27 Oct 2006
editcpr {object}
If the object's material is not 'living' then this sets the material to 'living'.
If a living object's health is gone, then this restores it to 1.
For healing above 1 health, consider
cast heal and there is some treasure dropped by living creatures in cow that may help you to gain health.
Reactions:This triggers the
cpr reaction. Here's an example of something you can script into an object to react:
if target of cpr then thankyou;
##thankyou:
getgender $actor;
print ''[$actor] stands up, dusts $him self off, and smiles towards [$init_obj], 'Thanks mate!''';
Note: When examining, double quotes appear as ''
so please adjust the above code accordingly in your script.This is 5 years, 8 months, 19 days, 8 hours and 6 minutes old
command called detect
Written by
thorn at 02:59 on Wed 01 Nov 2006
editdetect life
detect code
detect boring
The
detect life command scans your location and any adjacent one for signs of life. Each item shown has 'living' material and thus can be
attacked.
The
detect code command scans your location for items that are coded.
The
detect boring command scans your location for items that you own that aren't written in and aren't coded, including the location itself. Future plans on this are to search code for missing reactions so you can make your objects even more interactive.
About life in COW:
To make a living creature and
read the command called spawn;
If you are not alive, try
cpr me.
If you
create a creature and you want the creature to be alive, then
cpr the creature. Note: creatures created by
spawn are able to spontaneously return to life.
This is 5 years, 8 months, 15 days, 7 hours and 25 minutes old
command called guard
Written by
thorn at 05:06 on Fri 03 Nov 2006
editguard {target}
This prevents future attacks to a living target or exit through a doorway target while you are alive.
- If the target is already in combat, you may guard them but it will only apply to further initiated attacks
- You and the target must be made of 'living' material and have some health, or the target must be an exit.
- The target must not be guarding anything
- The target must not already be guarded by anything else.
- The location must not be of material 'sanctuary'
If you want to kill a guarded object, you must kill the guard first.
Pushing a guard might allow you to then attack the target or get to the exit.
A guard at an exit does not prevent someone from entering from the other side.
When someone tries to pass through a guarded exit, the failure message includes a 'noneshallpass' reaction with target=doorway and second=guard.
Coders: click
spawn then review the code for any of thje passive creature templates for a reaction example.
This is 5 years, 8 months, 13 days, 5 hours and 18 minutes old
command called meditate
Written by
thorn at 04:09 on Tue 13 Feb 2007
edit meditateThis command cannot be used unless you are sitting.
It causes you to regain mana over time.
This is 5 years, 5 months, 3 days, 6 hours and 15 minutes old
command called respawn
Written by
thorn at 06:10 on Thu 11 Jan 2007
editThis was designed to allow living objects to respawn after a while. Call it with a delay when your object detects it has just died.
It simply triggers a 'wakes' message.
For example: [code the material called passive]
This is 5 years, 6 months, 5 days, 4 hours and 14 minutes old
command called spawn
Written by
thorn at 00:53 on Thu 19 Oct 2006
editspawn {newname} from {template}
This creates a foe based on the desired template object.
just type spawn to get a list of templates
example: spawn orc from aggro1
This is 5 years, 8 months, 27 days, 9 hours and 31 minutes old