[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev:spells

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Fri Dec 8 10:20:45 CST 2006


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2006/12/08 10:20
User        : ryo
Edit Summary: format

@@ -690,79 +690,45 @@
  
  Firewalls can be activated by buttons, and can also cast spells in specific directions.  The direction the firewalls fire in is stored in the 'sp' field of the firewall.
  
  Note that FIRECHEST (61) got folded into FIREWALLS, because functionally, they were identical - just set 'sp 0' in the firechest, and it fires in a random direction.
+ 
  
  ===== Arch directory layout =====
  
- This section describes the basic layout of the archetypes in the arch
- directory.  This explanation is here to try and prevent confusion (where
- should this arch go), where would I find an arch, etc.
+ This section describes the basic layout of the archetypes in the arch directory.  This explanation is here to try and prevent confusion (where should this arch go), where would I find an arch, etc.
  
- I thought about this a bit - would it be better to organize spells by
- attacktype (eg, all fire spells together, all cold spells, etc), or by type of
- spell (bolt spells, bullet spells, cone spells, etc).
+ I thought about this a bit - would it be better to organize spells by attacktype (eg, all fire spells together, all cold spells, etc), or by type of spell (bolt spells, bullet spells, cone spells, etc).
  
- I think both methods have valid reasons for and against them.  I decided to do
- it by spell type because I think it will make it easier to compare spells.
+ I think both methods have valid reasons for and against them.  I decided to do it by spell type because I think it will make it easier to compare spells.
  
- For example, if one bolt spell does 20 damage, and another does 30 damage,
- even if by another attacktype, pretty easy to see that the later is more
- potent.
+ For example, if one bolt spell does 20 damage, and another does 30 damage, even if by another attacktype, pretty easy to see that the later is more potent.
  
- This also organizes the spells more by their subtype, which is the more
- standard way the arch's have been done in the past.  It makes for designing
- new spells much easier (you'd just copy a starter arch from the same
- directory, and not need to hunt for another one - imagine something like
- acid bolt).
+ This also organizes the spells more by their subtype, which is the more standard way the arch's have been done in the past.  It makes for designing new spells much easier (you'd just copy a starter arch from the same directory, and not need to hunt for another one - imagine something like acid bolt).
  
  That said, the organization (all relative to the arch top level directory)
  
- magic:  This directory goes away.  There are many things that are magical
-    that are not spells, so having a directory named magic is IMO not the
-    best of name:
- 
- spell: top level directory.  This directory is for the spell archetypes,
-   and is not meant to contain non related spell code.  thus, the
-   pentagram (actually a teleporter), and the weapon improver scrolls
-   (not really in any way related to spells) would get relocated.
- 
-     Bolt: Contains the bolt spells
-     Bullet: Bullet spells.
-     Common: Contains objects that are related to spells in many areas,
- 	eg, the burnout is used by many types of spells, and things like
- 	a flaming square or icy square are used for cone, bolt, and
- 	exploding ball spells - those would be located here.
-     Cone: Contains cone spells
-     Healing: healing spells
-     Potions: Contain the various potions.
-     SeekingBall: spells like ball lightning
-     Spellbook: spellbook/prayerbook objects.
-     Wand: Contain the wand, staff, rod archetypes.
- 
- There are almost certainly sub types I'm missing that I'll have to fill in.
- The idea here is to try to sketch something out that gives me a working
- layout to fill things in.
- 
- Within each of the spell subtype directories, the entries for the spell
- information would be needed.  And example below:
- 
- spell_lightning_bolt.arc: This is the spell object that goes in the player/
-    monster inventory that says they know the lightning bolt spell.  As
-    per other documentation, this also contains things like the skill needed
-    to use this spell, spell point cost, level cost, etc.
+   * magic:  This directory goes away.  There are many things that are magical that are not spells, so having a directory named magic is IMO not the best of name:
+   * spell: top level directory.  This directory is for the spell archetypes, and is not meant to contain non related spell code.  Thus, the pentagram (actually a teleporter), and the weapon improver scrolls (not really in any way related to spells) would get relocated.
+     * Bolt: Contains the bolt spells
+     * Bullet: Bullet spells.
+     * Common: Contains objects that are related to spells in many areas, eg, the burnout is used by many types of spells, and things like a flaming square or icy square are used for cone, bolt, and exploding ball spells - those would be located here.
+     * Cone: Contains cone spells
+     * Healing: healing spells
+     * Potions: Contain the various potions.
+     * SeekingBall: spells like ball lightning
+     * Spellbook: spellbook/prayerbook objects.
+     * Wand: Contain the wand, staff, rod archetypes.
  
- lightning_bolt.arc: this is the other_arch of the spell_lightning_bolt.arc.
-    Few values in this are actually used - most of the values come from
-    the parent arc.  However, this (lightning_bolt.arc) contains the
-    information like what the animation for the spell look like.
+ There are almost certainly sub types I'm missing that I'll have to fill in. The idea here is to try to sketch something out that gives me a working layout to fill things in.
  
- lightning_bolt.base.111.png (and so on) are the images used by the
-     lightning_bolt.arc arch.
+ Within each of the spell subtype directories, the entries for the spell information would be needed.  And example below:
  
- In the case of subtype directories with lots of entries, it is likely that the
- directories may then get broken up by things like attacktype of the spells.
+   * spell_lightning_bolt.arc: This is the spell object that goes in the player / monster inventory that says they know the lightning bolt spell.  As per other documentation, this also contains things like the skill needed to use this spell, spell point cost, level cost, etc.
+   * lightning_bolt.arc: this is the other_arch of the spell_lightning_bolt.arc. Few values in this are actually used - most of the values come from the parent arc.  However, this (lightning_bolt.arc) contains the information like what the animation for the spell look like.
+   * lightning_bolt.base.111.png (and so on) are the images used by the lightning_bolt.arc arch.
  
+ In the case of subtype directories with lots of entries, it is likely that the directories may then get broken up by things like attacktype of the spells.
  
  ===== Programming notes =====
  
  The number of top level object types is reduced - instead, many are now


IP-Address  : 213.174.127.3
Old Revision: http://wiki.metalforge.net/doku.php/dev:spells?rev=1165594691
New Revision: http://wiki.metalforge.net/doku.php/dev:spells

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list