ForlornSkald
New Member
So, the last time I was into OT's it was something like 10 years ago and I utilized TFS 0.3.6. Now I'm using Greed TFS 1.5. It is so good and clean I'm almost crying. But I'm lost, directionless when it comes to scripting. I wish to add an action where the player clicks on a bookshelf and a book with tidbits of lore is then received by him. It's this system, actually:
I love the idea that the book is stored within the player, and not as an actual item (if there were lots of players getting books the ground would be polluted).
But I don't know how to use it, or if it will work with my version. I'll try and mess around with the code soon.
Was a small typoStill getting only book 1 after getting one diferente book.
LUA:
local virtualLibrary = {
-- {actionid&storage, itemidYouWantToShowInPicture, "Book title", "text inside"}
{45001, 1950, "The King's Credence; Book 1", "The valiant king was a mage. The end."},
{45002, 1950, "The King's Credence; Book 2", "The valiant king was a sorcerer. The end."},
{45003, 1950, "The King's Credence; Book 3", "The valiant king was a warlock. The end."},
}
local action_virtualLibrary = Action()
function action_virtualLibrary.onUse(player, item, fromPosition, target...
- Xikini
I love the idea that the book is stored within the player, and not as an actual item (if there were lots of players getting books the ground would be polluted).
But I don't know how to use it, or if it will work with my version. I'll try and mess around with the code soon.