Page 2 of 2

Re: champion skill points

Posted: Fri Mar 01, 2019 3:43 am
by Dr.Disaster
minmay wrote: Fri Mar 01, 2019 3:01 am Perhaps have an item similar to the power_weapon that shoots a fireball with a very long cooldown?
I second this route. Said item could either auto-destruct once the puzzle is solved or be required to be left behind.

Re: champion skill points

Posted: Sat Mar 02, 2019 9:32 am
by HypnoToad
RayB wrote: Mon Feb 25, 2019 5:11 am I have created a puzzle where the champions need to cast a fireball and frost bolt in order to escape. when they arrive, if they don't
have enough skill in either, a button is created that uses the 'trainSkill' command to boost their fire and ice skills so they can make the
spells.
Why not create another fireball and frostbolt spell that don't require skill points and that do very little damage, so they can only really be useful in your room? I just tried this and after fixing the onCast component, it works with only 1 point of damage.
SpoilerShow

defineObject{
name = "scroll_fireball_weak",
class = "Item",
uiName = "Scroll of Fireball Weak",
model = "assets/models/items/scroll_spell.fbx",
gfxIndex = 113,
scroll = true,
spell = "fireball_weak",
weight = 0.3,
}

defineSpell{
name = "fireball_weak",
uiName = "Fireball Weak",
skill = "fire_magic",
level = 1,
runes = "ABC",
manaCost = 1,
onCast = function(caster, x, y, direction, skill)
local dx,dy = getForward(party.facing)
local x,y = party.x + dx, party.y + dy
spawn("fireball_weak", party.level, x, y, party.facing)
end
}


defineObject{
name = "fireball_weak",
class = "ProjectileSpell",
particleSystem = "fireball",
hitParticleEffect = "fireball_hit",
lightColor = vec(1, 0.5, 0.25),
lightBrightness = 15,
lightRange = 7,
lightHitBrightness = 40,
lightHitRange = 10,
castShadow = true,
launchSound = "fireball_launch",
projectileSound = "fireball",
hitSound = "fireball_hit",
screenEffect = "fireball_screen",
projectileSpeed = 4.5,
attackPower = 1,
damageType = "fire",
tags = { "spell" },
}

Re: champion skill points

Posted: Sat Mar 02, 2019 10:54 am
by THOM
A new blob spell would do no damage...