(Moar expansion) |
(Unnecessary) |
||
Line 460: | Line 460: | ||
| 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 495: | Line 495: | ||
| 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]] |
Revision as of 19:56, 20 November 2011
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 |
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[2] | 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[3] | No | Yes | No |
playerName | No | No | 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 | No | 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).
- ↑ 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 |