Script help: stop repeating opcode in combat?
fortyseven
Member Posts: 96
I’m looking for someone good at scripts to help me out.
I would like to make a script that can stop specific EFFs being called by opcode 272 every time the CHARNAME enters combat or encounters an enemy.
I’m using a mod that is regenerating spell slots repeatedly via opcode 261. However, it’s a bit cheesy in combat situations and I would like it to only work out of combat.
I have tried using the following script:
STOP261 uses opcode 318 (protection from resource). Unfortunately, this set up has no effect.
STOP261 has a duration of 6 seconds at which point I would reckon the script would be rerun but maybe this assumption is wrong? Changing the timing hasn’t had any impact though.
I suppose there would be a way to do this using variables, timers and triggers but that’s a bit beyond me.
I would welcome any suggestions!
I would like to make a script that can stop specific EFFs being called by opcode 272 every time the CHARNAME enters combat or encounters an enemy.
I’m using a mod that is regenerating spell slots repeatedly via opcode 261. However, it’s a bit cheesy in combat situations and I would like it to only work out of combat.
I have tried using the following script:
IF OR(3) ActuallyInCombat() AttackedBy([ANYONE],DEFAULT) Detect([ENEMY]) THEN RESPONSE #100 ApplySpellRES("STOP261",Myself) // No such index END
STOP261 uses opcode 318 (protection from resource). Unfortunately, this set up has no effect.
STOP261 has a duration of 6 seconds at which point I would reckon the script would be rerun but maybe this assumption is wrong? Changing the timing hasn’t had any impact though.
I suppose there would be a way to do this using variables, timers and triggers but that’s a bit beyond me.
I would welcome any suggestions!
0