Difference between revisions of "ADRIFT Game Development Tips"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
(The Advanced and Location properties tabs are missing)
m (The Advanced and Location properties tabs are missing)
Line 1: Line 1:
 
==== The Advanced and Location properties tabs are missing ====
 
==== The Advanced and Location properties tabs are missing ====
 +
Your developer is in simple mode.
 +
 
The Home toolbar ribbon will also be missing the Variable, Group, Property, Text override and Hint buttons.
 
The Home toolbar ribbon will also be missing the Variable, Group, Property, Text override and Hint buttons.
  
Your developer is in simple mode. To switch to Advanced mode press the [[File:RibbonButtonOptions.jpg]] button  
+
To switch to Advanced mode press the [[File:RibbonButtonOptions.jpg]] button  
 
and click on [[File:TickBoxSimpleMode.jpg]] to remove the tick.
 
and click on [[File:TickBoxSimpleMode.jpg]] to remove the tick.
  

Revision as of 04:03, 3 July 2012

The Advanced and Location properties tabs are missing

Your developer is in simple mode.

The Home toolbar ribbon will also be missing the Variable, Group, Property, Text override and Hint buttons.

To switch to Advanced mode press the RibbonButtonOptions.jpg button and click on TickBoxSimpleMode.jpg to remove the tick.

Whats the difference between General, Specific and System tasks?

  • A general task defines a command (verb) and its synonyms. It is used to give the default response and actions to using the command in the game, as well as define restrictions on when the command is not valid, and the responses to give in those circumstances.
  • A specific task is used to change the default response for a command, either for a specific object/character etc. or when specific restrictions are true.
  • System tasks are completely separate from the command parser.
    There are four main uses of system tasks:
    • They can be set to run when a player enters a particular location.
    • An action in another task can execute them like a subroutine.
    • An event can call a system task to perform some actions at a particular time.
    • They can run immediately when the game starts, to setup initial conditions or prompt the player for their name and gender.

How do i make a "Connector"

Several other Interactive Fiction systems use a "Connector" object to represent the link between two locations and control access between them.

  • In ADRIFT you can create a "Location Group" and select the locations to be connected.
  • If you then create an object such as a door and locate it in this location group, then it will appear in both locations in the game.
  • Movement between the two locations can then be controlled by using the open/closed/locked properties of the door in a movement restriction.
  • Other functions of "Connectors" can be implemented by creating specific tasks for other commands and using restrictions on other properties of the object (transparency, porosity etc.) to control whether you can see, hear or smell through it.

How do i change the auto-completion of words on runner command line

If you type 'i' on the runner command line it suggests 'inventory', and pressing the space bar will confirm it.

But if you type 'in', it instead suggests 'inside'. Likewise, typing 's' gives you 'south', but why not 'sit', 'stand' or 'say'?

The word that is chosen is governed by the auto-fill priority setting on the Advanced page of general tasks.

The general tasks for 'sit' and 'stand' in the standard library have auto-fill priorities of 4, 'say' has 2, and Player movement (which matches the word 'south' from the %direction% reference) has a priority of 1.

When the player types 's' into runner, it recognises that they could be trying to type any of these four words, and chooses the one with the highest priority as the one the player is most likely to want to enter.

If the player continues to type letters then this will eliminate any words that dont start with those letters, so runner will display the word with the highest priority from those that do still match.

When you create a new general task it will have an auto-fill priority of 10, which is lower than any of the standard library tasks, so the runner will always choose one of the standard commands over your new one.

If your new command is actually used more often than the command that the auto-fill chooses to display, you can force it to display the new command by changing its auto-fill to a higher priority (smaller number) than the command in the standard library that is currently being chosen.

If you add lots of new commands to your game then all of them will default to auto-fill priority 10, so before you release your game you should play it through to check that the auto-fill is choosing the best option most of the time, and adjust the auto-fill priority so that the most often used commands can be entered with the least amount of typing, while seldom used commands have to be typed in full.

My game has a secret password as a command, but the auto-fill gives it away by displaying it

Just set the auto-fill priority (on the 'Advanced' page of the passwords general task) to zero. This disables auto-fill and prevents that command from ever being displayed.

I created a new item, but i can't find it in any of the folders

You created a object, character, task etc. using the buttons on the main ribbon, or create an object from a location, but its not in the normal folder where you expected it to be.

You run the game and find that it has definately been created, so where is it?

When you create a new item in adrift, usually it is placed into its default folder (Objects in the objects folder etc.), however:

  • This folder must be open on the desktop at the time
  • One of the 10 default item folders must be the active folder (with the boldface caption)

Otherwise the new item will be saved to the currently active folder.

You may need to search through all of the folders that you had open at the time you created the item.

If it was accidently saved into a folder that contains sub-folder (such as "Standard library") then you need to right-click on it in the folders list and select "Open in new window" to check if the missing item is there.

The safest way to create a new item is to right-click on the "Name" colomb heading of the folder you want to put it in and select "Add New" from the context menu.

The 10 default folders also have an option to create their default item as the first menu item.

You can also right-click on the wanted folder in the folders list and select "New"

All the subfolders of the Standard Library folder are empty

If at the bottom of the folder windows it says that they contain several items, but the items cant be seen, then you have the "Hide library items" option turned on. To see the items select "Settings.." from the main menu, then select the "Library" tab. At the bottom left of the window make sure that "Hide library items" is NOT ticked.

A task that increments the %Score% variable only works the first time

This is by design.

Most I.F. games have a fixed maximum score which can only be obtained by performing all of the quests and tasks that the game has asked the player to do.

To prevent the player from simply repeating the same action until they reach the maximum score, the %Score% variable has a special feature that only lets each task write to it once. This is similar to right-clicking a text box and selecting the "Only Display Once" option, or NOT making a task repeatable.

If you do want the opposite behavior, where a task can update the score repeatably, then just create your own integer variable and use that for the score instead of %Score%.

<<< FAQ - Frequently Asked QuestionsMain PageConnecting locations using the Map >>>