User Tools

Site Tools


script:module:app

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script:module:app [2020-04-04 08:01]
skyjake
script:module:app [2020-07-18 16:30] (current)
skyjake
Line 15: Line 15:
 Returns the identifier of the currently loaded game plugin. The return value is text, for instance for the Doom game plugin: Returns the identifier of the currently loaded game plugin. The return value is text, for instance for the Doom game plugin:
   "​doom"​   "​doom"​
 +  ​
  
 +#​@Identifier_HTML~getInteger~@#​ (
 + #​@Arg_HTML~Number,​id~@#​ )
 +  ​
 +Query the value of an internal engine variable. The //id// is one of the constants in the App module, such as ''​App.NETGAME''​.
 +
 +
 +#​@Identifier_HTML~quit~@#​ ( )
 +
 +
 +#​@Identifier_HTML~setInteger~@#​ (
 + #​@Arg_HTML~Number,​id~@#,​
 + #​@Arg_HTML~Number,​value~@#​ )
 +  ​
 +Sets the value of an internal engine variable. The //id// is one of the constants in the App module, such as ''​App.NETGAME''​. Note that some values cannot be changed, or are reset internally by the engine.
  
 ===== Variables ===== ===== Variables =====
Line 54: Line 69:
  
 Increases the player'​s armor points and changes the armor type. Increases the player'​s armor points and changes the armor type.
 +
 +
 +#​@Identifier_HTML~giveBackpack~@#​ ( )
 +
 +(Availability:​ Not available in Hexen.)
 +
 +Increases the player'​s max ammo capacity.
 +
 +
 +#​@Identifier_HTML~givePower~@#​ (
 + #​@Arg_HTML~Number,​type~@#​ )
 +
 +Gives the player a power-up.
 +
 +The values for //type// depend on the game (see ''​enum powertype_t''​).
 +For Heretic, the following values are defined:
 +
 +  * App.Player.PT_ALLMAP
 +  * App.Player.PT_FLIGHT
 +  * App.Player.PT_HEALTH2
 +  * App.Player.PT_INFRARED
 +  * App.Player.PT_INVISIBILITY
 +  * App.Player.PT_INVULNERABILITY
 +  * App.Player.PT_SHIELD
 +  * App.Player.PT_WEAPONLEVEL2
  
  
Line 83: Line 123:
  
 #​@Identifier_HTML~setLocalQuake~@#​ (  #​@Identifier_HTML~setLocalQuake~@#​ ( 
-  ​#​@Arg_HTML~Number,​intensity~@#,​ + #​@Arg_HTML~Number,​intensity~@#,​ 
-  #​@Arg_HTML~Number,​duration~@#​ = 0 )+ #​@Arg_HTML~Number,​duration~@#​ = 0 )
  
 (Availability:​ Heretic, Hexen.) (Availability:​ Heretic, Hexen.)
script/module/app.1585976480.txt.gz · Last modified: 2020-04-04 08:01 by skyjake