(Created) |
(Adding categories) |
||
Line 451: | Line 451: | ||
|} |
|} |
||
<references /> |
<references /> |
||
+ | [[Category:Lua]] |
Revision as of 19:23, 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 | No | 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 |
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[2] | 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 |
resetTimerEvent | No | Yes | No |
resourceAmount | Yes | Yes | Yes |
scenarioDir | No | No | Yes |
setCameraMotion | No | No | Yes |
setCameraPosition | Yes | Yes | Yes |
setDisplayText | Yes | Yes | Yes |
setPlayerAsWinner | Yes | Yes | Yes |
showMessage | Yes | Yes | Yes |
startLocation | Yes | Yes | Yes |
startTimerEvent | No | Yes | No |
stopAllSound | No | Yes | No |
stopStreamingSound | No | Yes | No |
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).
- ↑ 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[1] | No | No | Yes |
timerTriggerEvent[1] | No | Yes | No |
unitAttacked | No | Yes | No |
unitAttacking | No | Yes | No |
unitCreatedOfType | Yes | Yes | Yes |
unitDied | Yes | Yes | Yes |