The axe is for an NPC mod I'm working on. It's basically a viking's battle axe. I'm told the the way to do this is like so:
The axe calls the .eff with its new effect, using opcode 177 and a 5% chance.
The .eff does opcode 67 (summon creature) on your target, summoning the creature you've made.
The creature (which is invisible) runs the script you've made and destroys itself.
One possible script would simulate hooking the axe around the target's ankle, thus:
This is measured in AI updates. There are 15 AI updates per second. What's a reasonable amount of time for the target to get back on its feet again?
Alternatively, a script to check for target's shield might look like this:
But I can find no action to remove target's shield.
The axe calls the .eff with its new effect, using opcode 177 and a 5% chance.
The .eff does opcode 67 (summon creature) on your target, summoning the creature you've made.
The creature (which is invisible) runs the script you've made and destroys itself.
One possible script would simulate hooking the axe around the target's ankle, thus:
Code Select
IF
True()
THEN
RESPONSE #100
ActionOverride(LastSummonerOf(Myself),PlayDead(75)) // target is tripped for 5 secs or whatever
ENDThis is measured in AI updates. There are 15 AI updates per second. What's a reasonable amount of time for the target to get back on its feet again?
Alternatively, a script to check for target's shield might look like this:
Code Select
IF
OR(3)
HasItemEquiped("SHLD01",LastSummonerOf(Myself))
HasItemEquiped("SHLD02",LastSummonerOf(Myself))
HasItemEquiped("SHLD03",LastSummonerOf(Myself))
etc.
THEN
RESPONSE #100
ENDBut I can find no action to remove target's shield.
