(Adding categories) |
No edit summary |
||
(4 intermediate revisions by one other user not shown) | |||
Line 38: | Line 38: | ||
| consoleMsg |
| consoleMsg |
||
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
− | | style="background-color: # |
+ | | style="background-color: #FFFF8C;" | <span style="display: none;">2</span> addConsoleText() |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
Line 117: | Line 117: | ||
|- |
|- |
||
| getConsumeEnabled |
| getConsumeEnabled |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | |- |
||
+ | | getPlayerName<ref>MegaGlest support both: getPlayerName() and playerName(), GAE supports only playerName().</ref> |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | | style="background-color: #FFFF8C;" | <span style="display: none;">2</span> playerName() |
||
+ | |- |
||
+ | | getSystemMacroValue |
||
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
Line 149: | Line 159: | ||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | |- |
||
+ | | giveStopCommand<ref>While MegaGlest's <tt>giveAttackStoppedCommand()</tt> function is able to issue attack stopped commands like <tt>giveStopCommand()</tt> can, only <tt>giveStopCommand()</tt> is able to give a regular stop command, as well.</ref> |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #FFFF8C;" | <span style="display: none;">2</span> <small>giveAttackStoppedCommand()</small> |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
Line 238: | Line 253: | ||
| playerName |
| playerName |
||
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
− | | style="background-color: # |
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
Line 270: | Line 285: | ||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | |- |
||
+ | | registerEvent |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | |- |
||
+ | | registerRegion |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
| resetTimerEvent |
| resetTimerEvent |
||
Line 283: | Line 308: | ||
| scenarioDir |
| scenarioDir |
||
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
− | | style="background-color: # |
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
Line 299: | Line 324: | ||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | |- |
||
+ | | setFactionTrigger |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
Line 304: | Line 334: | ||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | |- |
||
+ | | setTimer |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | |- |
||
+ | | setUnitTrigger |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | |- |
||
+ | | setUnitTriggerX |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
Line 330: | Line 375: | ||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | |- |
||
+ | | stopTimer |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
| stopTimerEvent |
| stopTimerEvent |
||
Line 420: | Line 470: | ||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
+ | | timer |
||
− | | timer<ref name="timer"><tt>timer</tt> in GAE and <tt>timerTriggerEvent</tt> in MegaGlest perform the same function.</ref> |
||
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|- |
|- |
||
− | | timerTriggerEvent |
+ | | timerTriggerEvent |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
Line 448: | Line 498: | ||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | | style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
+ | |- |
||
+ | | unitEvent |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
+ | | style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No |
||
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes |
||
|} |
|} |
||
− | <references /> |
||
[[Category:Lua]] |
[[Category:Lua]] |
Latest revision as of 20:37, 5 January 2012
Functions[]
Function | Glest | MegaGlest | GAE |
---|---|---|---|
addActor | No | No | Yes |
addConsoleText | No | Yes | consoleMsg() |
addConsoleLangText | No | Yes | No |
addDialog | No | No | Yes |
clearDisplayText | Yes | Yes | Yes |
clearHighlights | No | No | Yes |
consoleMsg | No | addConsoleText() | Yes |
createUnit | Yes | Yes | Yes |
damageUnit | No | No | Yes |
debugLog | No | No | Yes |
destroyUnit[1] | No | Yes | Yes |
disableAi | Yes | Yes | Yes |
disableConsume | No | Yes | No |
displayFormattedText | No | Yes | No |
displayFormattedLangText | No | Yes | No |
enableAi | No | Yes | No |
enableConsume | No | Yes | No |
endGame | Yes | Yes | Yes |
factionTypeName | No | No | Yes |
gameWon | No | Yes | No |
getAiEnabled | No | Yes | No |
getCellTriggerEventCount | No | Yes | No |
getConsumeEnabled | No | Yes | No |
getPlayerName[2] | No | Yes | playerName() |
getSystemMacroValue | No | Yes | No |
giveAttackCommand | Yes | Yes | Yes |
giveAttackStoppedCommand | No | Yes | giveStopCommand() |
giveKills | No | Yes | No |
giveResource | Yes | Yes | Yes |
givePositionCommand | Yes | Yes | Yes |
giveProductionCommand | Yes | Yes | Yes |
giveStopCommand[3] | No | giveAttackStoppedCommand() | Yes |
giveTargetCommand | No | No | Yes |
giveUpgradeCommand | Yes | Yes | Yes |
highlightCell | No | No | Yes |
highlightRegion | No | No | Yes |
lastAttackedUnit | No | Yes | No |
lastAttackedUnitName | No | Yes | No |
lastAttackingUnit | No | Yes | No |
lastAttackingUnitName | No | Yes | No |
lastCreatedUnit | Yes | Yes | Yes |
lastCreatedUnitName | Yes | Yes | Yes |
lastDeadUnit | Yes | Yes | Yes |
lastDeadUnitKiller | No | Yes | No |
lastDeadUnitKillerName | No | Yes | No |
lastDeadUnitName | Yes | Yes | Yes |
lockInput | No | No | Yes |
morphToUnit | No | Yes | No |
moveToUnit[4] | No | Yes | No |
playerName | No | Yes | Yes |
playStaticSound | No | Yes | No |
playStreamingSound | No | Yes | No |
registerCellTriggerEventForFactionToLocation | No | Yes | No |
registerCellTriggerEventForFactionToUnit | No | Yes | No |
registerCellTriggerEventForUnitToLocation | No | Yes | No |
registerCellTriggerEventForUnitToUnit | No | Yes | No |
registerEvent | No | No | Yes |
registerRegion | No | No | Yes |
resetTimerEvent | No | Yes | No |
resourceAmount | Yes | Yes | Yes |
scenarioDir | No | Yes | Yes |
setCameraMotion | No | No | Yes |
setCameraPosition | Yes | Yes | Yes |
setDisplayText | Yes | Yes | Yes |
setFactionTrigger | No | No | Yes |
setPlayerAsWinner | Yes | Yes | Yes |
setTimer | No | No | Yes |
setUnitTrigger | No | No | Yes |
setUnitTriggerX | No | No | Yes |
showMessage | Yes | Yes | Yes |
startLocation | Yes | Yes | Yes |
startTimerEvent | No | Yes | No |
stopAllSound | No | Yes | No |
stopStreamingSound | No | Yes | No |
stopTimer | No | No | Yes |
stopTimerEvent | No | Yes | No |
timerEventSecondsElapsed | No | Yes | No |
togglePauseGame | No | Yes | No |
triggeredCellEventId | No | Yes | No |
triggeredTimerEventId | No | Yes | No |
unfogMap | No | No | Yes |
unitCount | Yes | Yes | Yes |
unitCountOfType | Yes | Yes | Yes |
unitFaction | Yes | Yes | Yes |
unitPosition | Yes | Yes | Yes |
unlockInput | No | No | Yes |
unregisterCellTriggerEvent | No | Yes | No |
- ↑ MegaGlest's implementation only allows for the unit ID to be passed, GAE's allows unit ID and whether or not to make it clean (display the dead body).
- ↑ MegaGlest support both: getPlayerName() and playerName(), GAE supports only playerName().
- ↑ While MegaGlest's giveAttackStoppedCommand() function is able to issue attack stopped commands like giveStopCommand() can, only giveStopCommand() is able to give a regular stop command, as well.
- ↑ Other engines can specify to move to a unit by using unitPosition(), but they'll move directly to the location, whereas moveToUnit() moves to current location of the unit until it is reached.
XML events[]
Event | Glest | MegaGlest | GAE |
---|---|---|---|
cellTriggerEvent | No | Yes | No |
gameOver | No | Yes | No |
resourceHarvested | Yes | Yes | Yes |
startup | Yes | Yes | Yes |
timer | No | No | Yes |
timerTriggerEvent | No | Yes | No |
unitAttacked | No | Yes | No |
unitAttacking | No | Yes | No |
unitCreatedOfType | Yes | Yes | Yes |
unitDied | Yes | Yes | Yes |
unitEvent | No | No | Yes |