This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| xg:class:power [2019-11-26 08:50] – skyjake | xg:class:power [2019-11-26 08:50] (current) – [Example] skyjake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Power (XG class) ====== | ||
| + | |||
| + | Class = power | ||
| + | |||
| + | Modifies the activator' | ||
| + | For example, when walking over a trip wire an electromagnetic field could sap the power from the player' | ||
| + | |||
| + | Power class lines can only affect the activator of the line and the activator must be a player. It is possibile however, to use an XG sector' | ||
| + | |||
| + | |||
| + | ===== Parameters ===== | ||
| + | |||
| + | |||
| + | ^ Prm^ Name^ Type^ Meaning | | ||
| + | | Ip0| Min Delta| Integer| Minimum power delta. The real delta will be a random number between the minimum and maximum. | | ||
| + | | Ip1| Max Delta| Integer| Maximum power delta. | | ||
| + | | Ip2| Min Limit| Integer| Lower power limit. The player' | ||
| + | | Ip3| Max Limit| Integer| Upper power limit. The player' | ||
| + | |||
| + | |||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | | ||
| + | Line Type { | ||
| + | ID = 5006 | ||
| + | Comment = "Give armor when player crosses" | ||
| + | Flags = player_cross | ||
| + | Flags2 = when_act | any | ||
| + | Class = power | ||
| + | Count = 1 | ||
| + | Time = 1 | ||
| + | Min Delta = 50 | ||
| + | Max Delta = 50 | ||
| + | Max Limit = 200 | ||
| + | } | ||
| + | |||
| + | |||
| + | The line is triggered when the player crosses the line (Flags = player_cross). The line is active in any skill mode and any game type (Flags2 = any) and the line carries out it's action when active (Flags2 = when_act). The line can only be triggered once (Count = 1). When activated and the activator' | ||
| + | |||
| + | |||