ToME: the Tales of Maj'Eyal
http://forums.te4.org/

Help modifying a spell
http://forums.te4.org/viewtopic.php?f=40&t=48269
Page 1 of 1

Author:  chaseface [ Sat Sep 16, 2017 6:12 pm ]
Post subject:  Help modifying a spell

can anyone help me out with editing the radius of a spell? I would like to reduce the radius of the "fireflash" spell at higher levels, I feel it gets too big and would like the damage of the spell to increase as normal, but keep the default level 1 radius. There are many entries such as this one... am I even looking in the correct file? 1.5.5 team file? Im not understanding where to edit the radius part to keep it from increasing as you put points in the talent from lvl 2-5

newTalent{
name = "Fireflash",
type = {"misc/misc",3},
points = 5,
cooldown = 20,
range = 15,
proj_speed = 4,
direct_hit = true,
requires_target = true,
action = function(self, t)
local tg = {type="ball", range=self:getTalentRange(t), radius=1 + self:getTalentLevelRaw(t), selffire=false, talent=t, display={particle="bolt_fire", trail="firetrail"}}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:projectile(tg, x, y, DamageType.FIRE, rng.range(4, 8) * self:getTalentLevel(t), function(self, tg, x, y, grids)
game.level.map:particleEmitter(x, y, tg.radius, "fireflash", {radius=tg.radius, grids=grids, tx=x, ty=y})
end)
return true
end,
info = function(self, t)
return "Zoooshh!"
end,

Author:  Micbran [ Thu Sep 21, 2017 4:45 pm ]
Post subject:  Re: Help modifying a spell

Code:
local tg = {... radius = 1 + self:getTalentLevelRaw(t)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/