Starting with Object worn.
LordKrei
15 Jan 2019, 06:38So I found out quit easily how to have a object start in the players inventory but I want it worn at the start of the game.
I thought I found out how to but I don't think I can use the method I found? It said to put in the start script [ WearGarment(Obectname) ] I cant find a WearGarment in the script so...
I also found I can just find its Attribute named Worn and click the Box True and well it seems to start the game with the item worn it will not say (worn) next to the object in the inventory.
mrangel
15 Jan 2019, 10:04You just need to put the WearGarment command in the script; you already have the right answer.
If you are unable to open the code view and type WearGarment (Objectname)
, you will be looking for the option "Call function" in the GUI script editor. The function name is WearGarment
and it should have a single parameter, which is the object you want to wear.
LordKrei
15 Jan 2019, 10:27"You just need to put the WearGarment command in the script" But how would I do that? Like I said I am unsure how I would make it a start script as I cant find any Weargarment unless I am looking at the wrong spot or seeing the answer but don't know it as I am searching for Weargarment and what I need is something like Set variable/attribute.
As for the code view I am VERY iffy about messing with it.

K.V.
15 Jan 2019, 16:04Hello.
Have you seen this (sometimes it's a little hard to find the documents):
http://docs.textadventures.co.uk/quest/wearables.html
LordKrei
15 Jan 2019, 19:00@ K.V. Yes and from what I can tell it's not talking about starting with a object worn. That or it's the lack of sleep.
mrangel
15 Jan 2019, 21:31I am unsure how I would make it a start script
The start script is on the "scripts" tab of the game.
You can either add script → "Call function" → enter "WearGarment" as the function name
or go to code view and type the code you already have, WearGarment (object name here)
, (with the actual name of your object) on a new line
LordKrei
15 Jan 2019, 23:02Oh snap, I figured it out! I kept reading about "Call function" but had no idea where to find such thing. I always assumed from the scripts command list you get that was all you get, had no idea in the search bar it would bring it up.
Thanks!