This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Until 1 Dec 2026 all licenses are 30 % off, for example the Indie Bundle for €69.30 instead of €99. The code BLACKFRIDAY is applied automatically at checkout.
See licenses Try it for freekennst du dich schon mit Lua mit Visionaire Studio aus, oder ist das komplettes Neuland für dich?Ja, aber wie genau checkt dein Script einen VS Value usw? Das wäre halt interessantDas meinte ich ja mit, dass es meist nur grob umschrieben wird
function overrideActionText(mousePos)
-- individual action text: object name (in current language) of object below cursor, if there is no object then '' is shown as action text
local obj = game:getLink(VGameCurrentObject)
if obj:getId().tableId == eObjects then
local vo = obj.ObjectValues["VerbLook"]
if vo then
local str =obj.ObjectValues["VerbLook"]:getStr(VValueString)
if str then
return str .. " " .. obj:getTextStr(VObjectName)
end
end
return obj:getTextStr(VObjectName)
end
--return ''
end
registerHookFunction("getActionText", "overrideActionText")
if game.ActiveCommand:getName() == "Look" then
-- do something
elseif ...
...
endschau einmal hier: https://www.visionaire-studio.com/luadocs/#game-1Ok, danke. Ich steige leider immer noch nicht durch die Lua-Dokumentation durch. Wo finde ich denn heraus, was ActiveCommand ist (table, userdata ...) und welche Methoden oder Felder es enthält? In der API Referenz steht nur, dass es ein t_link zu einem Objekt ist.Ich würde gerne statt des Namen auch den Text aus dem Command property auslesen. Der Name des Commands ist nämlich "Look", der Action Text aus dem Command property, den ich zum Zusammenbauen brauche, ist aber "Look at"
function overrideActionText(mousePos)
local obj = game:getLink(VGameSavedObject)
local cmd = game.ActiveCommand:getName()
local verb = game.ActiveCommand:getTextStr(VButtonName)
if obj:getId().tableId == eObjects then
if cmd == "Walk" then
verb = ""
else
local overrideVerb = obj.ObjectValues["Verb" .. cmd]
if overrideVerb then
verb = overrideVerb:getStr(VValueString)
end
end
return verb .. " " .. obj:getTextStr(VObjectName)
end
return game:getLink(VGameCurrentObject):getTextStr(VObjectName)
end
registerHookFunction("getActionText", "overrideActionText")
This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.
New threadDeponia, The Whispered World and more than 160 other games were made with Visionaire Studio. The free version covers up to 25 scenes. For more scenes there is Visionaire Studio PRO from €75, and to sell your game the Indie Bundle for €99.
Through December 1: all licenses 30% off, for example the Indie Bundle for €69.30 instead of €99. Applied automatically at checkout.