TERRITORY-SETUP

From HSpace

Jump to: navigation, search

TERRITORY-SETUP

Setting up a territory is much like setting up any other object in HSpace. You first need to create a game object to represent your territory. Perform the following steps for a radial territory:

  1. @create My Territory
  2. @space/addterritory My Territory=0 (0 radial .. 1 for cubic).
  3. @space/set My Territory/uid=0 (Specify UID # for your universe)
  4. @space/set My Territory/cx=0
  5. @space/set My Territory/cy=0
  6. @space/set My Territory/cz=0
  7. @space/set My Territory/radius=1000

There you go! You now have a radial territory with its center at 0,0,0 and a radius of 1000 units. To set the entering and leaving messages, just set the ENTER and LEAVE attributes on the object to some messages. If you want, you can set the AENTER and ALEAVE attributes with some code that gets run when a ship enters or leaves.

See Also: HS-TERRITORIES, TERRITORY-ATTRS

Views
Personal tools