[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev:god_intervention
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Tue Apr 10 13:38:38 CDT 2007
A page in your DokuWiki was added or changed. Here are the details:
Date : 2007/04/10 13:38
User : ryo
Edit Summary: effects, code
@@ -1,18 +1,21 @@
- God intervention uses a treasure list to specify the different possible outcomes.
-
- In particular, invisible books are used for many things.
-
+ God intervention uses a treasure list to specify the different possible outcomes. In particular, invisible books are used for many things.
+ The list's order is meaningful, since it's possible to put grace limits (minimum grace the player should have) for interventions to take place.
+ If any effect is successfully applied (for instance if for healing if the player isn't at maximum hp), processing stops.
{FIXME} describe how to code those effects
+ Here is the list of possible effects. Unless noted otherwise, the item should be an invisible BOOK, the effect is based on the name (pretty self-descriptive).
+ ^ Object name ^ Effect ^
+ | ''grace limit'' | player must have at least ''grace'' gr points, max and current, for the list to continue to be processed. |
+ | give object | {FIXME} check how tr->name can be not NULL? |
+ | ''restore grace'' | sets the player's grace to 0-9 when it's negative. |
+ | ''restore hitpoints'' | restores a player's maxhp. |
+ | ''restore spellpoints'' | restores some of the players's sp {FIXME} what about the item?? |
+ | ''heal spell'' | casts the spell specified in the item's ''slaying'' field on the player. |
+ | ''remove curse'' | removes curse from all the player's items in inventory. |
+ | ''remove damnation'' | removes damnation from all the player's items in inventory. |
+ | ''heal depletion'' | removes stat depletion. |
+ | ''voice_behind'' | the player hears a voice saying item's ''msg'' field. |
+ | ''message'' | player hears item's ''msg''. |
+ | ''enchant weapon'' | player's weapon is enchanted to match the god's properties (name, attacktype, slaying). |
+ | spell object | god gives the player the use of specified spell, provided praying level is enough for the spell. |
+ | non invisible item | god-given item. |
- Here is the list of possible effects:
- * give object
- * restore grace
- * restore hp
- * restore sp
- * remove curse/damnation
- * heal depletion
- * voice
- * message
- * enchant weapon
- * give prayer
- * give object
IP-Address : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/dev:god_intervention?rev=1176062428
New Revision: http://wiki.metalforge.net/doku.php/dev:god_intervention
--
This mail was generated by DokuWiki at
http://wiki.metalforge.net/
More information about the crossfire-wiki
mailing list