Mit, Scripting?
Posted: Fri Sep 07, 2018 10:45 pm
Just wondering what, if any, changes have been made to the scripting system since the old game.
Sys functions :"EntityDestroyed", "EntityDamaged", "EntityPickup", "EntityUpdate", "ProductionRunStart", "ProductionRunEnd", "PickupBuilding","KillWildlife","FireWeapon","WorldUpdate", "BuildingDamaged", "WeaponHitGround","WeaponHitPlayer", "MapClick","OnTheHour", "TenToTheHour", "FiveToTheHour", "CrowFlagTouch", "CrowFlagTouchAny", "CrowExit", "Subgame", "HarvestDay","RaceStart", "RaceEnd", "FlagPickup","FlagCapture","HornballGoal","EnterGameZone","ExitGameZone", "SubgameChallengeStart", "SubgameChallengeCountdownStart", "DayOfYear","ViewTournament", "RaceWinner"
New globals:"sysGetNearestPlayer","sysGetSecondaryConstructionPrice", "sysIsInBuildZone", "sysIsInNoBuildZone", "sysIsInScriptZone", "sysAddWealth","sysRemoveWealth", "sysConstructBuilding", "sysGetCrowFlagState", "sysSetCrowFlagState", "sysGetPlayerListScore", "sysNumPlayersInRCMode", "SubgameGetStat", "SubgameGetNumPlayers", "SubgameGetNumPlayersOnTeam", "SubgameIncrementStat", "SubgameDecrementStat", "SubgameGetTimerRemaining", "SubgameGetScore", "SubgameGetHighestPlayerListScore", "SubgameNumPlayersWithPlayerListScore", "SubgameGetPlayerWithPlayerListScore", "SubgameIsPlayerInGame", "SubgameGetPlayer", "SubgameChallengeGetPlayer", "sysNumPlayersInBuildZone","sysNumPlayersInScriptZone", "sysNumPlayersWithPlayerVarVal", "sysGenerateTopPlayerVarsList","sysGetTopPlayer", "sysGetExportPrice", "EntityCreate", "EntityAddToWorld", "EntitySetPosition", "EntitySetRotation", "EntitySetModel", "EntitySetAnimation", "EntityMoveTo", "EntitySetBehaviour", "EntityDelete", "EntityDeleteAll", "EntityCommandCode", "EntitySetValue","EntitySetControlFlag", "EntityActivateUpdateEvent","EntitySetGraphics",
"SubgameJoin", "SubgameLeave", "SubgameEventAll", "SubgameMessageAll","SubgameSoundAll", "SubgameEventTeam","SubgameMessageTeam", "SubgameSoundTeam","SubgameSetStat", "SubgameSetTimer", "SubgameKillTimer", "SubgameReset", "SubgameRegisterEvent", "SubgameActivateScoreboard", "SubgameSetScore", "SubgameIncrementScore","SubgameActivatePlayerListScores","SubgameActivateUI", "SubgameWebpostDuelScore", "sysBuildingActivateStockroom", "sysBuildingActivateBuyItem", "sysBuildingActivateSetPrices", "sysBuildingActivateSellItem"
OSD Elements:"gPlayerCrowX", "gPlayerCrowY","gBuildingDamage", "gBuildingTeam", "gEventWorldX", "gEventWorldY",
"gPlayerRot", "gClickX", "gClickY", "gPlayerNetWorth", "gBuildingCapacity", "gBuildingSpaceRemaining", "gNumTowns","gTotalMoneySupply","gGlobalAverageWealth", "gNumAlive"
Other bits and pieces :"BLINKINGWARNINGTEXT", "EXITIMAGE", "SLIDER", "AMOUNTPRICEVALUE", "COUNTDOWN", "LAYERRECT"
Code: Select all
$maFunctionList[] =
{
"MyFunc", "MyOtherFunc", "AThirdFunc"
}
$callFunc = $maFunctionList[$inputVal]
$callFunc()