LuaAPI.wiki
changeset 145 547ac6a1d14e
parent 144 c080c7eb9656
child 146 a644314c7703
equal deleted inserted replaced
144:c080c7eb9656 145:547ac6a1d14e
    46  * <tt>!SuddenDeathTurns = 30</tt> - turns until sudden death begins
    46  * <tt>!SuddenDeathTurns = 30</tt> - turns until sudden death begins
    47  * <tt>!WaterRise = 47</tt> - height of water rise at sudden death in pixels
    47  * <tt>!WaterRise = 47</tt> - height of water rise at sudden death in pixels
    48  * <tt>!HealthDecrease = 5</tt> - amount of health decreased on sudden death
    48  * <tt>!HealthDecrease = 5</tt> - amount of health decreased on sudden death
    49  * <tt>Map = "Bamboo"</tt> - the map being played
    49  * <tt>Map = "Bamboo"</tt> - the map being played
    50  * <tt>Theme = "Bamboo"</tt> - the theme to be used
    50  * <tt>Theme = "Bamboo"</tt> - the theme to be used
       
    51  * <tt>Ready= 5000</tt> - the ready timer at the start of the round
       
    52  * <tt>MapGen</tt>
       
    53  * <tt>TemplateFilter</tt>
    51  * <tt>Goals = "Jumping is disabled"</tt> - if you want to add info to the game mode dialog, use "|" to separate lines
    54  * <tt>Goals = "Jumping is disabled"</tt> - if you want to add info to the game mode dialog, use "|" to separate lines
    52 
    55 
    53 If you want to add teams or hogs manually you have to do it here.
    56 If you want to add teams or hogs manually you have to do it here.
    54 
    57 
    55 === <tt>onGameStart()</tt> ===
    58 === <tt>onGameStart()</tt> ===
    95 <blockquote>This function is called when a gear is resurrected. CPU Hogs will resurrect if gfAISurvival is included in !GameFlags. Alternatively, specific gears can have heResurrectable set to true via !SetEffect.
    98 <blockquote>This function is called when a gear is resurrected. CPU Hogs will resurrect if gfAISurvival is included in !GameFlags. Alternatively, specific gears can have heResurrectable set to true via !SetEffect.
    96 </blockquote>
    99 </blockquote>
    97 === <tt>onAmmoStoreInit()</tt> ===
   100 === <tt>onAmmoStoreInit()</tt> ===
    98 
   101 
    99 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
   102 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
       
   103 </blockquote>
       
   104 
       
   105 === <tt>onScreenResize()</tt> ===
       
   106 
       
   107 <blockquote>This function is called when you resize the screen. Useful place to put a redraw function for any vgtHealthTags you're using.
   100 </blockquote>
   108 </blockquote>
   101 
   109 
   102 === <tt>onAttack()</tt> ===
   110 === <tt>onAttack()</tt> ===
   103 
   111 
   104 <blockquote>This function is called when your Hedgehog attacks.
   112 <blockquote>This function is called when your Hedgehog attacks.