I second this route. Said item could either auto-destruct once the puzzle is solved or be required to be left behind.
champion skill points
Re: champion skill points
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.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.
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" },
}
Last edited by HypnoToad on Sat Mar 02, 2019 11:39 pm, edited 1 time in total.
Re: champion skill points
A new blob spell would do no damage...