- Applied Patch #1000623 from Wojciech �yli�ski - gulldarek.

- Uncommented and updated DefineUnitStats
This commit is contained in:
feber 2004-07-30 17:29:48 +00:00
parent dd802ebbe4
commit 6f1b6df361
15 changed files with 34 additions and 36 deletions

View file

@ -44,12 +44,11 @@
<a href="../faq.html">FAQ</a>
<a href="unittype.html">PREV</a>
<a href="config.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#DefineAi">DefineAi</a>
<a href="#DefineAiHelper">DefineAiHelper</a>
<a href="#DefineAiPlayer">DefineAiPlayer</a>
<a href="pud.html#DefineAiWcNames">DefineAiWcNames</a>
<a href="#AiCheckForce">AiCheckForce</a>
<a href="#AiComputeGauges">AiComputeGauges</a>
<a href="#AiDebug">AiDebug</a>

View file

@ -43,7 +43,7 @@
<a href="../faq.html">FAQ</a>
<a href="ai.html">PREV</a>
<a href="game.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#AStar">AStar</a>
<a href="#DecorationOnTop">DecorationOnTop</a>

View file

@ -43,7 +43,7 @@
<a href="../faq.html">FAQ</a>
<a href="config.html">PREV</a>
<a href="icon.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#AddKeystrokeHelp">AddKeystrokeHelp</a>
<a href="#AddMessage">AddMessage</a>

View file

@ -43,11 +43,10 @@
<a href="../faq.html">FAQ</a>
<a href="game.html">PREV</a>
<a href="magic.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#DefineIcon">DefineIcon</a>
<a href="#DefineIconAlias">DefineIconAlias</a>
<a href="pud.html#DefineIconWcNames">DefineIconWcNames</a>
<hr>
<h2>Intro - Introduction to icon functions and variables</h2>

View file

@ -43,7 +43,7 @@
<a href="../faq.html">FAQ</a>
<a href="unittype.html">PREV</a>
<a href="ai.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="ai.html">AI</a>
<a href="config.html">Config</a>
@ -162,6 +162,8 @@
<dd></dd>
<dt><a href="game.html#DefineCampaign">DefineCampaign</a></dt>
<dd></dd>
<dt><a href="ui.html#DefineCheckboxStyle">DefineCheckboxStyle</a></dt>
<dd></dd>
<dt><a href="game.html#DefineConstruction">DefineConstruction</a></dt>
<dd></dd>
<dt><a href="ui.html#DefineCursor">DefineCursor</a></dt>

View file

@ -42,12 +42,11 @@
<a href="../index.html">Stratagus</a>
<a href="../faq.html">FAQ</a>
<a href="icon.html">PREV</a>
<a href="pud.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="mappresentation.html">NEXT</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#DefineMissileType">DefineMissileType</a>
<a href="#DefineSpell">DefineSpell</a>
<a href="pud.html#DefineMissileTypeWcNames">DefineMissileTypeWcNames</a>
<!-- <a href="#missile">missile</a> -->
<hr>
<h2>Intro - Introduction to spells and missiles.</h2>

View file

@ -39,8 +39,8 @@
<a href="../index.html">Stratagus</a>
<a href="../faq.html">FAQ</a>
<a href="magic.html">PREV</a>
<a href="research.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="mapsetup.html">NEXT</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#PresentMap">PresentMap</a>
<a href="#SetMapMiniImage">SetMapMiniImage</a>

View file

@ -38,9 +38,9 @@
<hr>
<a href="../index.html">Stratagus</a>
<a href="../faq.html">FAQ</a>
<a href="magic.html">PREV</a>
<a href="mappresentation.html">PREV</a>
<a href="research.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#SetStartView">SetStartView</a>
<a href="#SetAiType">SetAiType</a>

View file

@ -41,16 +41,15 @@
<hr>
<a href="../index.html">Stratagus</a>
<a href="../faq.html">FAQ</a>
<a href="pud.html">PREV</a>
<a href="mapsetup.html">PREV</a>
<a href="savegame.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#CheckDependency">CheckDependency</a>
<a href="#DefineAllow">DefineAllow</a>
<a href="#DefineDependency">DefineDependency</a>
<a href="#DefineModifier">DefineModifier</a>
<a href="#DefineUpgrade">DefineUpgrade</a>
<a href="pud.html#DefineUpgradeWcNames">DefineUpgradeWcNames</a>
<a href="#GetDependency">GetDependency</a>
<hr>
<h2>Intro - Introduction to research functions and variables</h2>

View file

@ -43,7 +43,7 @@
<a href="../faq.html">FAQ</a>
<a href="research.html">PREV</a>
<a href="sound.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#SaveGame">SaveGame</a>
<a href="#UnitAllocQueue">UnitAllocQueue</a>

View file

@ -43,7 +43,7 @@
<a href="../faq.html">FAQ</a>
<a href="savegame.html">PREV</a>
<a href="tileset.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#DefineGameSounds">DefineGameSounds</a>
<a href="#DisplaySounds">DisplaySounds</a>

View file

@ -43,10 +43,10 @@
<a href="../faq.html">FAQ</a>
<a href="sound.html">PREV</a>
<a href="triggers.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#DefineTileset">DefineTileset</a>
<a href="pud.html#DefineTileModel">DefineTileModel</a>
<a href="#DefineTileModel">DefineTileModel</a>
<hr>
<h2>Intro - Introduction to tileset functions and variables</h2>

View file

@ -43,7 +43,7 @@
<a href="../faq.html">FAQ</a>
<a href="tileset.html">PREV</a>
<a href="ui.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#ActionDefeat">ActionDefeat</a>
<a href="#ActionDraw">ActionDraw</a>
@ -215,7 +215,7 @@ AddTrigger(
</pre>
<a name="IfElapsed"></a>
<h3><h3>IfElapsed(op, quantity)</h3>
<h3>IfElapsed(op, quantity)</h3>
Return true if the game-cycle "op" quantity is true.

View file

@ -43,7 +43,7 @@
<a href="../faq.html">FAQ</a>
<a href="triggers.html">PREV</a>
<a href="unittype.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#DefineButton">DefineButton</a>
<a href="#DefineButtonStyle">DefineButtonStyle</a>

View file

@ -43,19 +43,18 @@
<a href="../faq.html">FAQ</a>
<a href="ui.html">PREV</a>
<a href="ai.html">NEXT</a>
<a href="index.html">CCL Index</a>
<a href="index.html">LUA Index</a>
<hr>
<a href="#DefineAnimations">DefineAnimations</a>
<a href="#DefineBoolFlags">DefineBoolFlags</a>
<a href="#DefineVariables">DefineVariables</a>
<a href="#DefineUnitStats">DefineUnitStats</a> -->
<a href="#DefineUnitStats">DefineUnitStats</a>
<a href="#DefineUnitType">DefineUnitType</a>
<a href="pud.html#DefineUnitTypeWcNames">DefineUnittypeWcNames</a>
<a href="#GetUnitTypeIdent">GetUnitTypeIdent</a>
<a href="#GetUnitTypeName">GetUnitTypeName</a>
<a href="#SetUnitTypeName">SetUnitTypeName</a>
<a href="#UnitType">UnitType</a>
<a href="#UnitTpeArray">UnitTypeArray</a>
<a href="#UnitTypeArray">UnitTypeArray</a>
<hr>
<h2>Intro - Introduction to unit-type functions and variables</h2>
@ -157,11 +156,10 @@ For example, Mana is active only for caster, but HP is available for every unit.
</pre>
<!--
<a name="DefineUnitStats"></a>
<h3>(DefineUnitStats ident player 'tag1 value1 'tag2 value2 ...)</h3>
<h3>DefineUnitStats(ident, player, tag1, value1, tag2, value2 ...)</h3>
Define unit stats. This is mostly only used in savegames, but included
Define unit stats. This is almost only used in savegames, but included
here for completeness. In the game every unit of the same type of one
player have the same stats, affected by upgrades.
@ -214,12 +212,14 @@ A special 'resource' is time, the time to train the unit in cycles.
<h4>Example</h4>
<pre>
(DefineUnitStats 'unit-archer 14
'level 1 'speed 10 'attack-range 4 'sight-range 5
'armor 0 'basic-damage 3 'piercing-damage 6 'hit-points 40
'costs '(time 70 gold 500 wood 50 oil 0 ore 0 stone 0 coal 0) )
DefineUnitStats("unit-archer", 14,
"level", 1, "speed", 10, "attack-range", 4, "sight-range", 5,
"armor", 0, "basic-damage", 3, "piercing-damage", 6, "hit-points", 40,
"costs", {"time", 0, "titanium", 0, "crystal", 0, "gas", 0, "ore", 0,
"stone", 0, "coal", 0})
</pre>
-->
<a name="DefineUnitType"></a>
<h3>DefineUnitType( "ident", { tag1 = value1, tag2 = value2, ...})</h3>