Hi all.... sigh....
I figured out most of it after 4 days of brain drain....This is what I have.. I cant believe I figured this out by looking at like... I lost count of the posts on this site... Man. So what do you think?
defineObject{
name = "teleport_open",
baseObject = "scroll",
uiName = "Grave Yard Gate Spell",
class = "Item",
model = "assets/models/items/scroll.fbx",
gfxIndex = 30,
---consumable = true, --- Don't need, I think it has something to do the (return true statement) ---
scroll = true,
weight = 0.3,
description = "To open a Magic Gate one only has to know how..",
onUseItem = function(self, champion)
playSound("lightning_bolt_hit")
spawn("fx",8,17,16, 1):setParticleSystem("lightning_bolt_hit")
--- I can Spawn teleport here as well ---
gravedoor1:open()
party:shakeCamera(1.5,2)
hudPrint("You use the Scroll and Grave Yard Gate opens")
hudPrint("")
hudPrint("Gain 150 XP")
for i = 1,4 do party:getChampion(i):gainExp(150) end
return true --- This function makes the Scroll be used I think, Disappear. --- REM THIS ---
end
}
PS: I could not create a New Spell to do this Code.
