Aller au contenu

Photo

Best approach for new skill?


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

#1
Dheuster

Dheuster
  • Members
  • 9 messages
I am making a new skill set for spellcasters called Spell Shaping. (Spell Shaping, Improved Spell Shaping, Expert Spell Shaping, Master Spell Shaping). The purpose of the skill is that it allows magic users to shape Area Effect spells so that they avoid allies. 

Level 1 - Protects party members from damage
Level 2 - Level 1 + party members protected from secondary effects such as Knockdown (fireball), movement rate (blizzard)  or freezing. (cone of cold).
Level 3 - Level 2 + Friendly non-party members also protected from damage
Level 4 - Protect any allies from any hostile effects (friendly fire).
 
I have the buttons showing up and I have been playing around with the 2DA files. I was thinking of overriding EVENT_TYPE_APPLY_EFFECT in events.xls so that it didn't route to rules_core, but instead routed to my own custom script where I would intercept the event, decide if I wanted to bail or not and possibly route to rules_core if it turned out that bailing wasn't necessary.

Basically, the method descibed here:

http://social.biowar.../Event_override

However, then I open up the toolset and I see that rule_core routes the event to effects_h which inevitably routes the event to individual effect handler scripts under _Core_Scripts/_Game Effects/Effects.

Playing the game at easy difficulty is the same as Level 1 Spell Shaping. I noticed that the game currently handles Game Difficulty conditions (for party damage immunity) in the inidividual scripts. So I am wondering what is the best approach? Should I edit each individual effect script to check for my new skill, or should I make a master interception point? Coding and maintenance wise, the master interception point may be easier. I would assume it would also be more compatible with other mods, and if it wasn't, it would be less code to merge. Conversly, placing the code in the individual scripts means I wont be doing any additional processing on non-hostile effects.. so performance would be slightly better.

Anyone have any experience with this. Any recommendations? Since this is a rather simple mod that adds a single skill line, I would prefer that it is as compatible as possible with other mods.

FInally, if someone knows of another mod that already does this, please let me know so I can just download it and move on to something else. Posted Image