Good Morning everyone.
Somehow I can't figure out how to create a simple quest:
1. Open the chest, give a key.
2. Key opens door, other chest or something else.
Thats my actual not working setup:
1. Created a keychest_pergamon_graveyard.lua in my actions/scripts/quests folder.
1.2 Added these lines in my actions.xml
2. Gave the doors (IDs: 5099, 5101, 5105) the action ID 4600. <-- Cuz of
(3.) Updated (#363) my walls.xml & items.xml in rme for the version 10.98 (thats my map version).
The search function here showed a lot of possibilities, but I didn't get anything really implemented. Does anyone have any idea to get it working for TFS 1.3?
Somehow I can't figure out how to create a simple quest:
1. Open the chest, give a key.
2. Key opens door, other chest or something else.
Thats my actual not working setup:
1. Created a keychest_pergamon_graveyard.lua in my actions/scripts/quests folder.
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.uid == 50005 then --key test--
if player:getStorageValue(50005) == -1 then
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have found a bone key! A tiny paper close to it says, it can open some doors in the tombs of this graveyard.")
local key = player:addItem(2092)
key:setActionId(4600)
player:setStorageValue(50005, 1)
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "This one is empty.")
end
end
return true
end
1.2 Added these lines in my actions.xml
XML:
<action actionid="4600" script="quests/keychest_pergamon_graveyard.lua" />
<action uniqueid="50005" script="quests/keychest_pergamon_graveyard.lua" />
2. Gave the doors (IDs: 5099, 5101, 5105) the action ID 4600. <-- Cuz of
Lua:
key:setActionId(4600)
(3.) Updated (#363) my walls.xml & items.xml in rme for the version 10.98 (thats my map version).
The search function here showed a lot of possibilities, but I didn't get anything really implemented. Does anyone have any idea to get it working for TFS 1.3?
Last edited: