I don't know if you want to use this in it or not. But the 3 tomes alone were kind of boring for me.
So I made some for Energy and the other types of magic as well. But honestly you could put any skill in one of those.
Code: Select all
defineObject{
name = "tome_greaterhealth",
class = "Item",
uiName = "Tome of Greater Health",
model = "assets/models/items/tome.fbx",
description = "A thick tome that thoroughly describes the diet and excercises of the hermits of Basabua.",
gfxIndex = 30,
weight = 1.0,
gameEffect = "Gain Health +50",
onUseItem = function(self, champion)
playSound("level_up")
hudPrint(champion:getName().." gained Health +50.")
champion:modifyStatCapacity("health", 50)
champion:modifyStat("health", 50)
return true
end,
}
defineObject{
name = "tome_greaterenergy",
class = "Item",
uiName = "Tome of Greater Energy",
model = "assets/models/items/tome.fbx",
description = "A thick tome that thoroughly describes the meditations and mental exercises of the hermits of Basabua.",
gfxIndex = 30,
weight = 1.0,
gameEffect = "Gain Energy +50",
onUseItem = function(self, champion)
playSound("level_up")
hudPrint(champion:getName().." gained Energy +50.")
champion:modifyStatCapacity("energy", 50)
champion:modifyStat("energy", 50)
return true
end,
}
defineObject{
name = "tome_greaterwisdom",
class = "Item",
uiName = "Book of Greater Wisdom",
model = "assets/models/items/tome.fbx",
description = "The keepers of the sunken library record the knowledge of all their visitors in these journals.",
gfxIndex = 30,
weight = 1.0,
gameEffect = "Gain 10 skillpoints",
onUseItem = function(self, champion)
playSound("level_up")
hudPrint(champion:getName().." gained 10 skillpoints.")
champion:addSkillPoints(10)
return true
end,
}
defineObject{
name = "tome_greaterfire",
class = "Item",
uiName = "Tome of Greater Fire",
model = "assets/models/items/tome.fbx",
description = "The covers of this book feel as hot as embers. Chants and fire rituals are written on the pages.",
skill = "spellcraft",
requiredLevel = 5,
gfxIndex = 30,
weight = 1.0,
gameEffect = "Gain Fire Magic +8 and Resist Fire +20",
onUseItem = function(self, champion)
playSound("level_up")
hudPrint(champion:getName().." gained Resist Fire +20.")
champion:trainSkill("fire_magic", 8, true)
champion:modifyStatCapacity("resist_fire", 20)
champion:modifyStat("resist_fire", 20)
return true
end,
}
defineObject{
name = "tome_greaterice",
class = "Item",
uiName = "Tome of Greater Ice",
model = "assets/models/items/tome.fbx",
description = "The covers of this book feel icy. Chants and ice rituals are written on the pages.",
skill = "spellcraft",
requiredLevel = 5,
gfxIndex = 30,
weight = 1.0,
gameEffect = "Gain Ice Magic +8 and Resist Cold +20",
onUseItem = function(self, champion)
playSound("level_up")
hudPrint(champion:getName().." gained Resist Cold +20.")
champion:trainSkill("ice_magic", 8, true)
champion:modifyStatCapacity("resist_cold", 20)
champion:modifyStat("resist_cold", 20)
return true
end,
}
defineObject{
name = "tome_greaterlight",
class = "Item",
uiName = "Tome of Greater Air",
model = "assets/models/items/tome.fbx",
description = "The covers of this book feel electric. Chants and air rituals are written on the pages.",
skill = "spellcraft",
requiredLevel = 5,
gfxIndex = 30,
weight = 1.0,
gameEffect = "Gain Air Magic +8 and Resist Shock 20",
onUseItem = function(self, champion)
playSound("level_up")
hudPrint(champion:getName().." gained Resist Shock +20.")
champion:trainSkill("air_magic", 8, true)
champion:modifyStatCapacity("resist_shock", 20)
champion:modifyStat("resist_shock", 20)
return true
end,
}
defineObject{
name = "tome_greaterpoison",
class = "Item",
uiName = "Tome of Greater Earth",
model = "assets/models/items/tome.fbx",
description = "The covers of this book feel grounded. Chants and poison rituals are written on the pages.",
skill = "spellcraft",
requiredLevel = 5,
gfxIndex = 30,
weight = 1.0,
gameEffect = "Gain Earth Magic +8 and Resist Poison 20",
onUseItem = function(self, champion)
playSound("level_up")
hudPrint(champion:getName().." gained Resist Posion +20.")
champion:trainSkill("earth_magic", 8, true)
champion:modifyStatCapacity("resist_poison", 20)
champion:modifyStat("resist_poison", 20)
return true
end,
}