ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun Dec 17, 2017 12:37 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Help modifying a spell
PostPosted: Sat Sep 16, 2017 6:12 pm 
Offline
Low Yeek

Joined: Sat Sep 16, 2017 7:43 am
Posts: 5
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,


Top
 Profile  
 
PostPosted: Thu Sep 21, 2017 4:45 pm 
Offline
Sher'Tul

Joined: Sun Jun 15, 2014 12:19 am
Posts: 1063
Location: Yeehaw, pardner
Code:
local tg = {... radius = 1 + self:getTalentLevelRaw(t)

_________________
A little bit of a starters guide written by yours truly here.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group