Jump to content


Grammarsalad

Member Since 22 Sep 2012
Offline Last Active Today, 06:55 AM

Topics I've Started

Detecting feats by script in iwd2

03 June 2018 - 09:34 AM

Is this possible? Specifically, is it possible to detect improved initiative?

IWD2 script actions

03 June 2018 - 09:32 AM

This section displays script triggers rather than actions:

https://gibberlings3...wd2triggers.htm

Contact Other Plane

09 July 2017 - 07:52 AM

Okay, so I'm creating a mod that imports all IWDEE spells into other EE games. The one spell that i have decided to exclude is contact other plane. I just don't know the lore well enough...

But I'm curious: how is EET going to handle this spell? It seems like it will require A LOT of work...

Dynamically create an array (matrix?) at install of filenames

23 June 2017 - 11:45 PM

Okay, here's what I'm trying to do: I want to create an array of filenames of all wands, and then clone an effect in a spell excluding use of that wand using effect 180.  
 
So, the code I have works in that it dynamically patches my spl with only the filenames of wands...but, it copies ALL items into the override folder.  Whenever I try BUT_ONLY, weidu returns an error.  
 
Is there a way for me to do this without copying all items into the override folder?
 
Here's what I have
 
COPY ~proficiency/data/proficiency/b_wnd01.SPL~ ~override~   //
//Now, only excludes wand of fear, WAND02.  (BE SURE TO EXCLUDE WAND02 here)!!!!Need to add all others...
COPY_EXISTING_REGEXP GLOB ~.*\.itm~ ~override~
 PATCH_IF (~%SOURCE_SIZE%~ > ~0x71~) BEGIN
 READ_SHORT 0x1c ~itemtype~
   PATCH_IF (~itemtype~ = 35) BEGIN  //only if a wand
            INNER_ACTION BEGIN
            INCLUDE ~proficiency/lib/wand_list.tpa~
   END
 END
END
//clone
ACTION_PHP_EACH use AS block => rock BEGIN
  ACTION_IF (~%rock%~ STRING_EQUAL ~wand~) BEGIN
     COPY_EXISTING ~b_wnd01.SPL~ ~override~
       LPF CLONE_EFFECT INT_VAR multi_match = 1 match_opcode = 180 STR_VAR resource = EVAL ~%block%~ END
  END
END

My wand_list file has this:

 

ACTION_DEFINE_ASSOCIATIVE_ARRAY use BEGIN


~%SOURCE_RES%~ => wand


END

 

 

Traifying REPLACE_TEXTUALLY

01 May 2017 - 08:34 AM

I'm wondering if it is possible to traify REPLACE_TEXTUALLY.  Here's an example of what I have: 

 

COPY_EXISTING ~b_po010.spl~ ~override~
 READ_LONG 0x50 "valid"
  PATCH_IF (%valid% >= 0) BEGIN // verify desc is valid
  READ_STRREF 0x50 ~desc~
INNER_PATCH_SAVE new_desc ~%desc%~ BEGIN
REPLACE_TEXTUALLY ~Sphere: Healing~ ~Sphere: Life~
        END
  SAY_EVALUATED 0x50 ~%new_desc%~
 END

I would like to do something like this: 

REPLACE_TEXTUALLY ~Sphere: Healing~ @001

But, it doesn't work..