Изменения

Перейти к навигации Перейти к поиску

JS

1006 байт добавлено, 12:01, 11 ноября 2021
== Пример использования==
{| class="wikitable"
! Описание !! Команда |- |Получить данные об игроках || js VarsGroups.playerGroupplayer.all() |- |Надпись в мире || js player = VarsGroups.playerGroupplayer.getByID(<font color="red">'''id'''</font>); Call.onLabellabel("<font color="green">'''Сообщение'''</font>",<font color="red">'''60'''</font>, player.getX(), player.getY()); |- |Диалоговое окно с кнопкой [ОК] || js Call.onInfoMessagesendMessage("<font color="green">'''Сообщение'''</font>"); |- |Надпись на экране, с привязкой по сторонам || js Call.onInfoPopupinfoPopup("<font color="green">'''Сообщение'''</font>",<font color="red">'''60'''</font>,<font color="red">'''500'''</font>,<font color="red">'''500'''</font>,<font color="red">'''500'''</font>,<font color="red">'''500'''</font>,<font color="red">'''500'''</font>); |- |Спавн блока в мире || js block = Blocks.<font color="blue">'''coreShard'''</font>; player = VarsGroups.playerGroupplayer.getByID(<font color="red">'''id'''</font>); BuildBlock.onConstructFinish(Vars.world.tile(playerConstructBlock.tileXconstructFinish(),player.tileYtileOn()),block,0null,0,player.getTeamteam(),falsenull); |- |Проверка на валидность установки блока в точке || js player = VarsGroups.playerGroupplayer.getByID(<font color="red">'''id'''</font>); Build.validPlace(player.getTeamteam(), player.tileX(), player.tileY(), Blocks.<font color="blue">'''rtgGenerator'''</font>, 0); |- |Спавн мобов и выдача им предметов || js player = VarsGroups.playerGroupplayer.getByID(<font color="red">'''id'''</font>); unit = UnitTypes.<font color="blue">'''reaperantumbra'''</font>.createspawn(Team.<font color="orange">'''sharded'''</font>); unit.set(,player.getXx(), player.getYy()); unit.add(); unit.addItem(Items.<font color="green">'''coal'''</font>,<font color="red">'''30'''</font>); |- |Смена ника || js VarsGroups.playerGroupplayer.getByID(<font color="red">'''id'''</font>).name = "<font color="green">'''Ник'''</font>" |- |Выдача предметов игроку || js player = VarsGroups.playerGroupplayer.getByID(<font color="red">'''id'''</font>).addItem(Items.<font color="purple">'''coal'''</font>,<font color="red">'''30'''</font>); |- |Убить последнего заспавненоготюнита || js unit.onDeath() |- |Помещение предметов в ядро || js Vars.state.teams.cores(Team.<font color="orange">'''sharded'''</font>.cores().first().items.set(Items.<font color="purple">'''coal'''</font>,<font color="red">'''30'''</font>); |- |Смена команды || js player = VarsGroups.playerGroupplayer.getByID(<font color="red">'''id'''</font>).setTeamteam(Team.<font color="orange">'''sharded'''</font>); |-|Спавн пули || js player = Groups.player.getByID(<font color="red">'''id'''</font>); Calls.createBullet(Bullets.lancerLaser, player.getTeam(), player.getX(), player.getY(), Mathf.random(360), Mathf.random(0.5, 1.0), Mathf.random(0.2, 1.0))}|} 
== Юниты, предметы, команды, блоки ==
{| class="wikitable"
! Категория !! Список
|-
|<font color="blue">'''Юниты'''</font> || <font color="blue">'''draugmace, spiritdagger, crawler, fortress, scepter, reign''''''vela, nova, pulsar, quasar, corvus''' '''atrax, spiroct, arkyid, toxopid''' '''flare, eclipse, horizon, zenith, antumbra''' '''mono, poly, mega, quad, phantomoct, wraithalpha, ghoulbeta, revenantgamma''' '''risso, lichminke, reaperbryde, daggersei, crawleromura, titanretusa, fortressoxynoe, eruptorcyerce, chaosArrayaegires, eradicatornavanax'''</font>
|-
|<font color="purple">'''Предметы'''</font> || <font color="purple">'''scrap, copper, lead, graphite, coal, titanium, thorium, silicon, plastanium, phasefabricphaseFabric, surgealloysurgeAlloy, sporePod, sand, blastCompound, pyratite, metaglass'''</font>
|-
|<font color="orange">'''Команды'''</font> || <font color="orange">'''derelict, sharded, crux, green, purple, blue'''</font>
|-
|<font color="blue">'''Блоки'''</font> ||
<font color="blue">'''siliconSmelter, siliconCrucible, kiln, graphitePress, plastaniumCompressor, multiPress, phaseWeaver, surgeSmelter, pyratiteMixer, blastMixer, cryofluidMixer, melter, separator, disassembler, sporePress, pulverizer, incinerator, coalCentrifuge'''</font> </br> <font color="blue">'''powerSource, powerVoid, itemSource, itemVoid, liquidSource, liquidVoid, messagepayloadSource, payloadVoid, illuminator'''</font> </br> <font color="blue">'''copperWall, copperWallLarge, titaniumWall, titaniumWallLarge, plastaniumWall, plastaniumWallLarge, thoriumWall, thoriumWallLarge, door, doorLarge, phaseWall, phaseWallLarge, surgeWall, surgeWallLarge, mender, mendProjector, overdriveProjector, overdriveDome, forceProjector, shockMine, scrapWall, scrapWallLarge, scrapWallHuge, scrapWallGigantic, thruster'''</font> </br> <font color="blue">'''conveyor, titaniumConveyor, plastaniumConveyor, armoredConveyor, distributor, junction, itemBridge, phaseConveyor, sorter, invertedSorter, [[Роутер|router]], overflowGate, underflowGate, massDriver, duct, ductRouter, ductBridge'''</font> </br> <font color="blue">'''mechanicalPump, rotaryPump, thermalPump, conduit, pulseConduit, platedConduit, liquidRouter, liquidContainer, liquidTank, liquidJunction, bridgeConduit, phaseConduit'''</font> </br> <font color="blue">'''combustionGenerator, thermalGenerator, turbineGeneratorsteamGenerator, differentialGenerator, rtgGenerator, solarPanel, largeSolarPanel, thoriumReactor, impactReactor, battery, batteryLarge, powerNode, powerNodeLarge, surgeTower, diode'''</font> </br>
<font color="blue">'''mechanicalDrill, pneumaticDrill, laserDrill, blastDrill, waterExtractor, oilExtractor, cultivator'''</font> </br>
<font color="blue">'''coreShard, coreFoundation, coreNucleus, vault, container, unloader, launchPad, launchPadLarge'''</font> </br> <font color="blue">'''duo, scatter, scorch, hail, arc, wave, lancer, swarmer, salvo, fuse, ripple, cyclone, foreshadow, spectre, meltdown, segment, parallax, tsunami'''</font> </br> <font color="blue">'''commandCenter, draugFactorygroundFactory, airFactory, spiritFactorynavalFactory, phantomFactoryadditiveReconstructor, wraithFactorymultiplicativeReconstructor, ghoulFactoryexponentialReconstructor, revenantFactorytetrativeReconstructor, daggerFactoryrepairPoint, crawlerFactoryrepairTurret'''</font> </br> <font color="blue">'''payloadConveyor, titanFactorypayloadRouter, fortressFactorypayloadPropulsionTower, repairPointdeconstructor, constructor, largeConstructor, payloadLoader, payloadUnloader'''</font> </br> <font color="blue">'''dartPadmessage, switchBlock, microProcessor, deltaPadlogicProcessor, tauPadhyperProcessor, omegaPadlargeLogicDisplay, javelinPadlogicDisplay, tridentPadmemoryCell, glaivePadmemoryBank'''</font> </br>|-| Зоны| <code> groundZero, desertWastes, craters, frozenForest, ruinousShores, stainedMountains, tarFields, fungalPass, saltFlats, overgrowth, impact0078, crags, desolateRift, nuclearComplex</code>
|}
 
== Также посмотрите ==
[[Пользовательские правила]]
15

правок

Навигация