Jump to content


Photo

Add effect 206 for a not fixed spell, need weidu code


3 replies to this topic

#1 deratiseur

deratiseur
  • Modders
  • 127 posts
  • Gender:Male
  • Location:GAP, Hautes Alpes, France

Posted 02 February 2018 - 11:47 AM

Hello :)

 

please, help me. If i install a new spell with this command :

 

ADD_SPELL ~Derats_kits/Projo/Spells/spwi467.spl~ 2 4 WIZARD_MORDENKAINENS_FORCE_MISSILES SAY 0x08 @135 SAY 0x50 @136    SPRINT temp "%DEST_RES%"

 

How can i replace "SPWI467" in this command by my installed spell, because his SPWI number isn't fixed ?

COPY    ~Derats_kits/Sorcelier/Copy/pxsarmok.spl~    ~override/pxmprook.spl~    WRITE_ASCII 0xae ~spwi467~ #8

And if i have created a special shield spell with "protection from spwi467" and at lvl 17 "bounce spwi467", how can i replace all instance of spwi467 in my spell by the installed unfixed SPWIx ?


Edited by deratiseur, 02 February 2018 - 11:54 AM.

My kits pack in french and english : Deratiseur's Unused Kits Pack v14  for TOB / BGT / BGEE / BG2EE / IWDEE for PC and MAC OS-X

My french quest/shop mod : L'ogre et le gnome, une histoire de bleu v2 for BG2 / BGT / BG2EE


#2 subtledoctor

subtledoctor
  • Modders
  • 2315 posts
  • Gender:Male

Posted 02 February 2018 - 12:04 PM

Get the RES (spwi name) of the spell with LAF RES_NUM_OF_SPELL_NAME, and then use ALTER_EFFECT to plug it into your spells.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#3 Gwendolyne

Gwendolyne
  • Members
  • 175 posts
  • Gender:Male
  • Location:France

Posted 02 February 2018 - 12:41 PM

Or:

ADD_SPELL ~Derats_kits/Projo/Spells/spwi467.spl~ 2 4 WIZARD_MORDENKAINENS_FORCE_MISSILES
    SAY 0x08 @135 SAY 0x50 @136
    SPRINT temp_spwi467 "%DEST_RES%"

COPY    ~Derats_kits/Sorcelier/Copy/pxsarmok.spl~    ~override/pxmprook.spl~
    LPF ALTER_EFFECT INT_VAR match_opcode = 206 STR_VAR resource = EVAL "%temp_spwi467%" END

CARPE DIEM...



In progress : Menace sur le Royaume de Diamant Éternel

#4 deratiseur

deratiseur
  • Modders
  • 127 posts
  • Gender:Male
  • Location:GAP, Hautes Alpes, France

Posted 02 February 2018 - 01:11 PM

Ok, thanks Gwendoline, "STR_VAR resource = EVAL "%temp_spwi467%" END" is really good :)

 

And i use ALTER_EFFECT, as said by subtledoctor.

 

My code is now :

COPY    ~override/pxmprook.spl~                        ~override~  LPF ALTER_EFFECT STR_VAR match_resource = spwi430 resource = EVAL "%temp%" END

(spell is copied in the override before, because now it use spwi430, ready for IWDEE, and patched only on BG versions.)

 

 

Thanks to you two.


Edited by deratiseur, 02 February 2018 - 02:06 PM.

My kits pack in french and english : Deratiseur's Unused Kits Pack v14  for TOB / BGT / BGEE / BG2EE / IWDEE for PC and MAC OS-X

My french quest/shop mod : L'ogre et le gnome, une histoire de bleu v2 for BG2 / BGT / BG2EE




Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users