WizardryEE/Content/spells/Spell_Creation_Guidelines.md

31 lines
1.0 KiB
Markdown
Raw Normal View History

# Spell Creation Guidelines for WizardryEE
## 1. File Structure and Metadata
- Uniform comment block at the top (Spell Name, Filename, Copyright, Creation/Modification Dates)
- Include necessary `prc_` header files (e.g., `prc_inc_spells`)
## 2. Spell Logic and Effects
- **Damage Spells**:
- Complex damage calculations with metamagic support
- Example: `nw_s0_icestorm.nss`
- **Buff/Debuff Spells**:
- Temporary skill/attribute modifications
- Example: `nw_s0_identify.nss`
- **Aura/Permanent Effects**:
- AOE implementations with disable/re-enable support
- Example: `nw_s1_aurablind.nss`
## 3. Essential Functions and Variables
- `PRCGetCasterLevel(OBJECT_SELF)`
- `SetLocalInt`/`DeleteLocalInt` for `X2_L_LAST_SPELLSCHOOL_VAR`
- `EffectVisualEffect`, `PRCEffectDamage`, `EffectLinkEffects`
## 4. Customization Tips
- Review `/Notes/spells` for examples
- Test metamagic interactions
- Ensure spell school consistency
## 5. Future Spell Customization Template
```nss
// TO DO: Customize Based on Guidelines Above
// ...