[Empyrion-Scripting] - Script Collection
Site Admin
Posts: 136
www.4poziom.waw.pl
Joined: Sun Jul 26, 2020 3:49 am
Has thanked: 7 times
Been thanked: 5 times
Location: Sosua
Contact:
Site Admin
Ammunition Display Script
Ammunition Display Script
Code: Select all
{{~fontsize 7}}
{{~set 'E' '<indent=239.3>║</indent>'}}
{{~set 'L' (concat '║' @root.data.E)}}
<line-height=7><align=center>AMMUNITIONS:
</align>
╔{{~bar 1 0 1 52 '═'}}╗{{~#scroll 30 1 1}}
{{~#items @root.E.S 'AMMO CONTAINER NAME HERE'}}
{{@root.data.L}}
║ <color=#FFF>{{name}}</color> <indent=80%>[<color=#{{~#test count leq '500'}}{{intervall 1}}F11{{else}}FFF{{/intervall}}{{else}}{{~#test count leq '2000'}}FA0{{else}}{{~#test count ge '2000'}}1F1{{/test}}{{/test}}{{/test}}>{{Count}}</color>]</indent>{{@root.data.E}}
{{@root.data.L}}
║ <size=6,5><color=#{{~#test count leq '500'}}{{intervall 1}}F11{{else}}FFF{{/intervall}}{{else}}{{~#test count leq '2000'}}FA0{{else}}{{~#test count ge '2000'}}1F1{{/test}}{{/test}}{{/test}}>{{~format count '{0,3:0.0}'}}</color>/<color=#F0F>{{format 2000 '{0,3:0.0}'}}</color></size><indent=30%><color=#F11>⚛ {{bar count 0 2000 12 '▒' '<color=#300>░</color>'}}<indent=80%><size=6,5><b><color=#FFF>{{~math count '/' 2000}}{{~format . '{0,8:P2}'}}{{~/math}}</color></b></size></indent></color></indent>{{@root.data.E}}
{{@root.data.L}}
╟{{bar 1 0 1 52 '─'}}╢{{/items}}{{/scroll}}
╚{{bar 1 0 1 52 '═'}}╝
</line-height>
Site Admin
Hydroponics Script
Hydroponics Script
Code: Select all
<sprite name="Hydroponics">
{{#blocks E.S 11 130 11 9 130 9}}
{{#each .}}
{{Id}} {{i18n Id}} X:
{{~Position.X}} Y:
{{~Position.Y}} Z:
{{~Position.Z}}
{{/each}}
{{~#getsignal @root.E.S 'PlantsHarvest'}}
{{~#if .}}
{{#harvest @root.E.S ../.
'MainFridge' 11 130 6 true}}
Harvest: {{i18n Id}}➔
{{~i18n ChildOnHarvestId}}
get {{DropOnHarvestCount}}:
{{~i18n DropOnHarvestId}}
{{/harvest}}
{{else}}
{{#pickupplants @root.E.S ../.
'PickupPlantsTarget' 11 130 6 true}}
Pickup: {{i18n Id}}➔{{i18n PickupTargetId}}
{{/pickupplants}}
{{/if}}
{{/getsignal}}
{{/blocks}}
{{~#getsignal @root.E.S 'PlantsHarvest'}}
{{~#if .}}
{{#replantplants @root.E.S
'PickupPlantsTarget'}}
Plant: {{i18n Id}}➔X:{{X}} Y:{{Y}} Z:{{Z}}
{{/replantplants}}
{{/if}}
{{/getsignal}}
Site Admin
General Infos
General Infos
Code: Select all
Playfield: "{{P.Name}}"
Entity: "{{E.Name}}"
{{#use E.S.FuelTank}}
{{bar Content 0 Capacity 20 }}
{{~math Content '/' Capacity}}
{{~format . '{0,8:P2}'}}
{{~/math}} =
{{~format Content '{0,7:0.0}'}} / {{format Capacity '{0,7:0.0}'}} Fuel
{{/use}}
{{#use E.S.OxygenTank}}
{{bar Content 0 Capacity 20 }}
{{~math Content '/' Capacity}}
{{~format . '{0,8:P2}'}}
{{~/math}} =
{{~format Content '{0,7:0.0}'}} / {{format Capacity '{0,7:0.0}'}} Oxygen
{{/use}}
{{#use E.S.PentaxidTank}}
{{bar Content 0 Capacity 20 }}
{{~math Content '/' Capacity}}
{{~format . '{0,8:P2}'}}
{{~/math}} =
{{~format Content '{0,7:0.0}'}} /
{{~format Capacity '{0,7:0.0}'}} AU
{{/use}}
{{#use E.S.DamageLevel}}
{{bar . 0 100 20 }}
{{~format . '{0,8:P2}'}} Damage
{{/use}}
Docked:
{{#each E.S.DockedE}}
- {{Name}}
{{~use S.FuelTank}}
{{~math Content '/' Capacity}}
{{~format . '{0,8:P2} Fuel'}}
{{~/math}}
{{/use}}
{{~use S.OxygenTank}}
{{~math Content '/' Capacity}}
{{~format . '{0,8:P2} O2'}}
{{~/math}}
{{/use}}
{{/each}}
Players on Playfield:
{{#each P.Players}}
- {{Name}}
{{/each}}
Players on Structure:
{{#each E.S.Players}}
- {{Name}}
{{/each}}
{{datetime}}
<align=center>
<size=10><color=#0044ff>North</color> <color=#00a2ff>Industries</color></size>
<size=8>Gaming Services</size>
<size=7><color=#0044ff>klabausterbeere.xyz</color></size>
</align>
Site Admin
Automatic Refill All Tanks
Automatic Refill All Tanks
Alternative (works better):
Code: Select all
{{~set 'LimitToType' 'SV,HV'}}
<pos=0>◜</pos><pos=188>◝</pos>
<align=center><i><size=150%>Autofill docked vessels</size></i>
</align><pos=0>◟</pos><pos=188>◞</pos>
{{#getswitch @root.E.S 'sw_autofill'}}{{#if SwitchState}}
{{~#each @root.E.S.DockedE}}
{{#test EntityType in @root.Data.LimitToType}}
{{#items @root.E.S 'Output Power'}}
{{#test Count ge 1000}}
{{#test id eq 2128}}
{{#fill ../this ../../../S 'Oxygen' 100}}{{/fill}}
{{/test}}
{{#test id eq 2373}}
{{#fill ../this ../../../S 'Fuel' 100}}{{/fill}}
{{/test}}
{{#test id eq 2294}}
{{#fill ../this ../../../S 'Pentaxid' 100}}{{/fill}}
{{/test}}
{{/test}}
{{/items}}
{{/test}}
{{/each}}
{{else}}
<color=red>Switch this lever to automaticly fuel up your docked vessels.</color>
{{/if}}{{/getswitch}}
<size=90%>
{{~set 'IDs' '2373,2294,2128'}}
{{~#itemlist @root.E.S.items @root.Data.IDs}}
{{#test count le 1000 }}
<indent=6>◉ <color=red>Not Enough: <color=#00cccc>{{Name}}</color> (<color=orange>{{Count}}</color>)</color></indent>
{{else}}
<indent=6>◉ <color=green>Plenty:</color> <color=#00cccc>{{Name}}</color></indent>
{{/test}}
{{/itemlist}}
</size>
Code: Select all
<align=center>
<size=10><color=#0044ff>North</color> <color=#00a2ff>Industries</color></size>
<size=8>Auto Fill Tanks</size>
{{#use E.S.FuelTank}}
{{bar Content 0 Capacity 20 }}
{{~math Content '/' Capacity}}
{{~format . '{0,8:P2}'}}
{{~/math}} =
{{~format Content '{0,7:0.0}'}} / {{format Capacity '{0,7:0.0}'}} Fuel
{{/use}}
{{#use E.S.OxygenTank}}
{{bar Content 0 Capacity 20 }}
{{~math Content '/' Capacity}}
{{~format . '{0,8:P2}'}}
{{~/math}} =
{{~format Content '{0,7:0.0}'}} / {{format Capacity '{0,7:0.0}'}} Oxygen
{{/use}}
{{#use E.S.PentaxidTank}}
{{bar Content 0 Capacity 20 }}
{{~math Content '/' Capacity}}
{{~format . '{0,8:P2}'}}
{{~/math}} =
{{~format Content '{0,7:0.0}'}} /
{{~format Capacity '{0,7:0.0}'}} AU
{{/use}}
</align>
{{#items E.S 'Trashcan'}}
{{#fill this @root.E.S 'Oxygen' 100}}
Oxygen: {{SourceE.Name}}:{{Source}}->
{{~DestinationE.Name}}:{{Destination}}
{{format Count '{0,5}'}} : {{i18n Id}}
{{datetime}}
{{/fill}}
{{#fill this @root.E.S 'Fuel' 100}}
Fuel: {{SourceE.Name}}:{{Source}}->
{{~DestinationE.Name}}:{{Destination}}
{{format Count '{0,5}'}} : {{i18n Id}}
{{datetime}}
{{/fill}}
{{#fill this @root.E.S 'Pentaxid' 100}}
Pentaxid: {{SourceE.Name}}:{{Source}}->
{{~DestinationE.Name}}:{{Destination}}
{{format Count '{0,5}'}} : {{i18n Id}}
{{datetime}}
{{/fill}}
{{/items}}
Who is online
Users browsing this forum: No registered users and 0 guests