Jump to content

does this work?


subtledoctor

Recommended Posts

COPY ~spell.spl~ ~override~
   READ_SHORT 0x1c spell_type
BUT_ONLY
ACTION_IF (%spell_type% = 1) BEGIN
   COPY ~other.spl~ ~override~
      LPF CLONE_EFFECT INT_VAR match_opcode=206 STR_VAR match_resource=~spwi101~ resource=~spell~ END
   BUT_ONLY
END

Set aside the CLONE_EFFECT stuff, it's just a placeholder; I'm worried about that ACTION_IF. I want to draw a variable from a spell file, so I get the variable from that 1st COPY. Next, depending on the value of the variable, I want to perform an action on a different spell file. I feel like it's probably more complicated than just using ACTION_IF... is it?

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...