Special passive for unique

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
PureQuestion
Master Artificer
Posts: 726
Joined: Fri Feb 03, 2012 3:53 am

Special passive for unique

#1 Post by PureQuestion »

Code: Select all

on_added_to_level = function(self)
		local DamageType = require "engine.DamageType"
		-- Add a lasting map effect
		game.level.map:addEffect(self,
			self.x, self.y, nil,
			DamageType.PHYSKNOCKBACK, t.getDamage(self, t),
			3,
			5, nil,
			{type="generic_vortex", {radius=e.radius, rm=255, rM=255, gm=180, gM=255, bm=180, bM=255, am=35, aM=90}},
			function(e)
				e.x = e.src.x
				e.y = e.src.y
				if e.src:attr("dead") then [THING GOES HERE]  end
				return true
			end,
			false
		)
	end,
Basically, the above map effect follows the enemy until they die. I want to know how to make it go away when they die. See [THING GOES HERE]

In theory, simply knowing the name of the duration variable would do. Is it dur? duration?

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Special passive for unique

#2 Post by darkgod »

dur
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

aardvark
Wyrmic
Posts: 200
Joined: Wed Aug 22, 2012 12:16 am

Re: Special passive for unique

#3 Post by aardvark »

darkgod wrote:dur
OK, but PureQuestion still wants to know the variable name.

Thank you, I'll be here all week.

Post Reply