Fed2 Star - the newsletter for the space trading game Federation 2

The weekly newsletter for Fed2
by ibgames

EARTHDATE: May 12, 2013

Fed2 Star last page Fed2 Star: Official News page 2 Fed2 Star next page

HOW THE NEW SCRIPTS WORK

by Hazed

The new scripts are all about things you can do with objects. Here’s an explanation of what they do.

checklogflag

This script checks the type of location that the player is in by looking at the properties set on the location. It is used in conjunction with objects, so that an object behaves differently in different kinds of locations, such as a bar, an exchange, and so on. You can also add a custom flag to a location or a set of locations, which has no effect in the game itself, but which you can check for using this script. So you could label a set of locations which all share some kind of feature, where a specific object would behave differently from other places.

Some examples:

  • If a set of locations are underwater it would be impossible to strike a match.
  • If the locations were filled with flammable gas, striking a match would have an explosive effect.
  • If they were a designated quiet area, then banging a drum would get the player thrown out.

I am sure you can think of other examples of how this check could be used.

move object

Strictly speaking this isn’t a new script, it’s a new use for an old one. The script which you use to move a player around the map can also be used to move an object. This is where having a storeroom in location 0 on the map is useful: you can move objects in and out of the storeroom to make them appear and disappear when a player does something, or just have them move around the map, like the police box on Earth.

get and drop

These two scripts move an object from the ground into the player’s inventory, and vice versa, allowing you to use events to replace the standard game get and drop actions.

Fed2 Star last page   Fed2 Star next page