I also want these scrolls to be found on an alcove or altar.
So..
1. The script from the website only makes it work for any scroll or any dagger as long as it is in the same "item group". I want it to only work with a very specific item (in this case a specific scroll)
Im guessing it will have something to do with the items id?
Code: Select all
function itemPuzzle()
-- iterate through all contained items on alcove, checking for a matching name
for i in itemPuzzleAlcove:containedItems() do
if i.name == "scroll" then
playSound("level_up")
break
end
end
end2. I want these scrolls not to just lay around on the ground, these scrolls are gonna be put in an alcove or on an altar. But how do i give an item an uniqe id that i created via script?
Code: Select all
local message = spawn("scroll")
message:setScrollText("This is an important\nmessage!")
scrollAlcove:addItem(message)