Page 1 of 1

Help - Knockdown script

Posted: Mon Sep 30, 2013 12:42 am
by John Adams
Maybe it's late, maybe I've sat here too long this weekend :mrgreen: but for the life of me, I cannot remember how to simply knock down an opponent. I'm pretty sure it's just the visual effect of the spell itself, so that part I might get. But what "damage type" would that be to cause this list of effects?

Code: Select all

    --Apply Knockdown
	--Throws target back
	--Stuns target
	--Blurs vision of target
	--Except Epic
I think the throws back is just the visual, but what damage is stun? and I guess we do not have blur vision yet?

I'm also assuming "except epic" would be in the code, but do we need a flag in the script to check?

Thanks for advice.

Re: Help - Knockdown script

Posted: Mon Sep 30, 2013 12:57 am
by thefoof
Hmm well I know epics tend to be affected by these, just for a shorter amount of time and they gain immunity to the effect for awhile after. We probably could hardcode a passive spell to be cast and check for this on calling these effects.

lua:AddControlEffect() - is that what you're looking for?

Re: Help - Knockdown script

Posted: Mon Sep 30, 2013 1:00 am
by Jabantiz
Stun would be AddControlEffect(). As for knock back there is this opcode "OP_PerformPlayerKnockbackMsg" which we don't handle, for a NPC it is probably a visual state like you said, no clue what blurs vision does to NPC's though

Re: Help - Knockdown script

Posted: Mon Sep 30, 2013 1:12 am
by John Adams
Hopefully blurring them makes them less accurate? HA :)

Thanks for the response. I'll check it out tomorrow, see if I can get ONE spell scripted.