subtledoctor Posted November 27, 2015 Share Posted November 27, 2015 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
Mike1072 Posted November 27, 2015 Share Posted November 27, 2015 That should work fine. Link to comment
subtledoctor Posted November 27, 2015 Author Share Posted November 27, 2015 Hm, I didn't think it would be that easy. Works great. Thanks! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.