Long story short i get the message: Warning! unknown spell: activation.
So I've created a wand with this code:
SpoilerShow
Code: Select all
defineObject{
name = "activation_rod",
class = "Item",
uiName = "Special Wand",
model = "assets/models/items/lightning_rod.fbx",
description = "This wand has been enchanted with special powers.",
gfxIndex = 222,
attackPower = 14,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "activation",
wandPower = 0,
charges = 7,
emptyItem = "activation_rod_empty",
attackSwipe = "vertical",
attackSound = "swipe",
impactSound = "impact_blunt",
weight = 1.7,
}
defineObject{
name = "activation_rod_empty",
class = "Item",
uiName = "Special Wand (Empty)",
model = "assets/models/items/lightning_rod.fbx",
description = "This wand has once been enchanted with special powers. Now it is out of charges.",
gfxIndex = 223,
attackPower = 14,
accuracy = 0,
coolDownTime = 4,
attackMethod = "meleeAttack",
attackSwipe = "vertical",
attackSound = "swipe",
impactSound = "impact_blunt",
weight = 1.7,
}
SpoilerShow
Code: Select all
defineObject{
name = "activation",
class = "ProjectileSpell",
particleSystem = "fireball",
hitParticleEffect = "fireball_hit",
lightColor = vec(0.9, 0.9, 0.9),
lightBrightness = 9,
lightRange = 3,
lightHitBrightness = 40,
lightHitRange = 1,
castShadow = true,
launchSound = "fireball_launch",
projectileSound = "fireball",
hitSound = "fireball_hit",
screenEffect = "fireball_screen",
projectileSpeed = 30,
attackPower = 0.1,
damageType = "fire",
--cameraShake = true,
tags = { "spell" },
}
Anyone's got any ideas ? I ran out of mine, so help please
Small update: Spell created this way is working when used without an item (i.e. spawner).
