PHatDriver wrote:Hello beautiful people,
Neewbie here and in need a bit of advice.
Most certainly been asked before but I cant find it.
So, I have a "wood" and a "String"
and want to combind them to make a new objct - a Bow.
Im guesing I have to hide both and replace.
But dont even know where comands
"use - with" or combind "* with *" are.
Or even how to replace the above.
Thank you too much for any help...
Hi PHatDriver, welcome to the world of ADRIFT.
Right, first of all you must create a GENERAL task for the command ATTACH object TO object. Start a new task and click on General. You must think of other verbs that mean the same as "attach" so that the command line in your general task will be:[attach/fit/join] %object1% [to] %object2%
. The default message for this task should be "You cannot attach %TheObject[%object1%]% to %TheObject[%object2%]%
Note that I will probably get shot down in flames for using the old-style functions (%TheObject[%object1%]%, etc) in the completion message above, but I really do not understand the new-style functions at all. If any Drifter wants to show you how to do this using the new-fangled functions, let him/her go ahead!
ADRIFT will automatically add the restrictions you need for this task. When this has been done, click on OK on the Description tab to save the task.
Assuming you have already created objects for A LENGTH OF WOOD, A PIECE OF STRING and A BOW, you must now create a SPECIFIC task to actually perform the action.
Start a new task and give it a name, e.g. ATTACH STRING TO WOOD. Before you do anything else, make the task a GENERAL one, click on the "Advanced" tab and put a tick in the "Prevent this task from being inherited" box. Click on the Description tab when you have done this and switch the task back to a SPECIFIC one.
Where it says "Task should override:" click on the triangle far right and select the ATTACH OBJECT TO OBJECT general task you created earlier. The command will appear below as Attach first object
to second object
Where it says "first object" click on this and select "a piece of string" from the drop-down list and for the second object select "a length of wood". Now, in the large box at the bottom, type in the text that you want to appear when the player actually types ATTACH STRING TO WOOD. I have done this in the attached demo. You can click on "Apply" at any stage to keep what you have done.
Click on the Restrictions tab and click "Add". The first restriction you need is Object 'a piece of string' must be visible to character 'Player'
and the second is Object 'a length of wood' must be visible to character 'Player'
Now click on "Actions" and type "Add" again and add the actions Move object 'a piece of string' to location [Hidden]
, Move object 'a length of wood' to location [Hidden]
and Move Object 'a bow' to held by Player
Finally, switch back to the Description tab, as before, and click OK to save the task.
I have created a small demo where the above has been implemented. Note that you should try to think of other commands which the player might type in to achieve the same as ATTACH STRING TO WOOD. The simplest of these would be MAKE BOW. Using the above as an example, maybe you could add this command to the demo?
I hope the above and the demo helps.