Object Data

From Populous Wiki

(Redirected from Trigger)
Jump to: navigation, search

When editing the object data in dat files each object has a Type and Model.

All Objects Start with:

UByte 01 : Model 
UByte 02 : Type
SByte 03 : Owner (Tribe)
SWord 04 : Position-X
SWord 06 : Position-Y

See Dat Format for more information.

Contents

Types

Models

01 Followers

02 Buildings

03 Creature

All will show as Eagle.  Singleplayer only.

04 Vehicle

05 Scenery

06 General

07 Effect

08 Shot

09 Shape

10 Internal

11 Spell Cast

Buildings and Worship Items

SLong 08 : Angle of Building

All buildings contain one number indicating the angle of the structure.

Scenery

SWord 11 : Angle of Scenery

Triggers

Every worship item uses a trigger. Triggers give the properties of a worship item and what happens when it is worshipped. Triggers are placed on the same position as the worship item.

Trigger Types

00 - Proximity (Stone Head or Totem Pole)
01 - Timed  (Usually reoccurring automatic things)
02 - Player Death
03 - Shaman Proximity (Obelisk)
04 - Library (Vault of Knowledge)
05 - Shaman AOD (Gargoyle)

Trigger Data:

UByte 01 - 6   : Model: Trigger
UByte 02 - 6   : Type: General
SByte 03 - 0   : Owner
SWord 04 - 0   : Position-X
SWord 06 - 0   : Position-Y
-
UByte 08 - 0   : Trigger Type: Types listed above
UByte 09 - 1   : Cell Radius 
UByte 10 - 1   : Random Value
SByte 11 - 1   : Number of Occurrences (0 for infinite, negative for retrigger)
UWord 12 - 6   : Trigger Count: Number of followers to worship it (1 if it is an obelisk or gargoyle)
UWord 14 -     : 10 Thing idx
...
UWord 34 - 180 : Pray Time in quarter-seconds
UByte 36 - 0   : Start Inactive
UByte 37 - 0   : Create Player Owned
SWord 38 - 1   : Inactive Time

These are all the settings a trigger has. From the 14th byte to 33 are 10 words containing the effects or discoveries linked to it. A trigger can hold up to 10 effects, the word contains the idx of the effect.

The idx is the initial object count in the dat file. For example you might have 40 objects in the dat file and the 7th object was the effect, the idx would be 7. Then the effect occurs only when the worship object has been worshipped.

Discoveries

Availability Types

0 - Not Available
1 - Permanent (Needed for Vault of Knowledge)
2 - Level
3 - Once 
4 - Discovery

Triggers can be linked to almost anything from discoveries to followers. A discovery is a spell or building that is obtained.

UByte 01 -   2 Model: Discovery
UByte 02 -   6 Type: General
SByte 03 - 255 (Owned by nobody)
SWord 05 -     Position-X (should be the same as worship item)
SWord 07 -     Position-Y
-
Byte  08 -  11 Discovery Type
Byte  09 -   4 Discovery Model
Byte  10 -   3 Availability Type 
Byte  11 -   1 Trigger Type
Long  12 -     Mana Amount
RisingHead.GIF

Effects can also be used, see a list of effects above. If no discovery is linked to a Stone Head it will appear as a Totem Pole in the game.

Rising Stone Heads

On some levels Stone Heads can rise when another Stone Head is worshipped. This is done by making another Stone Head with a trigger etc. and then linking the Worship Object and the Trigger to the Trigger that will making it rise.

Personal tools
Namespaces
Variants
Actions
Navigation
Network
Toolbox