The Pixie wrote:
To get the ball rolling; there seems to be no way to change the name of an object during play (attempting to do so generates an error), so appending "(being worn)" is not going to be easy.
The Pixie wrote:
Is there a way to set up a second inventory box for items worn? Or, can the inventory behaviour be modified so it lists worn items differently? Where do I find how that is handled?
Included file 'Clothing_lib.aslx' is not a library
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at AxeSoftware.Quest.EditorControls.WFEditorTree.AddNode(String key, String text, String parentKey, Nullable`1 foreColor, Nullable`1 backColor, Nullable`1 position)
at AxeSoftware.Quest.Editor.m_controller_AddedNode(String key, String text, String parent, Boolean isLibraryNode, Nullable`1 position)
at AxeSoftware.Quest.EditorController.AddElementToTree(Element o, Nullable`1 position)
at AxeSoftware.Quest.EditorController.UpdateTree()
at AxeSoftware.Quest.EditorController.Initialise(String filename, String libFolder)
...
Alex wrote:I agree, I think the Script Commands should be removed from the "All Functions" category...
Pertex wrote:I added the "All Functions" category because I had to click through different pages to find a function or a command. Mostly I do know a piece of the name of a command or function so I find the right thing on this all-page really quick.
<function name="GetObjectFlag" parameters="obj, flag" type="boolean">
if (HasBoolean(obj, flag)) {
return (GetBoolean(obj, flag))
}
else {
return (false)
}
</function>
A way to change the scope for a command when matching #object#.
And example to illustrate would be the "buy" command. Set this to look only in player.parent.stock (checking if it exists first). Goods for sale go in the stock object, where they are not available for "get", "look at", etc. When you buy something, the item in stock gets cloned, and added to the player. If the player drops and then takes the object, the game will know he is talking about the clone, and not the original.
Alex wrote:Already logged for 5.1: http://quest.codeplex.com/workitem/867
m4u wrote:Hi guys, i needing this badly for the competition. Any luck?
</asl>
<command name="comment">
<pattern type="string"><![CDATA[^\*]]></pattern>
<script>
</script>
</command>
</asl>
Pertex wrote:Sorry, I am a bit confused. What should this code do? Logging the output in a textfile?
[[ This puzzle is really obscure. The solution should be made a bit more obvious.
Pertex wrote:Sorry, I am a bit confused. What should this code do? Logging the output in a textfile?