Hello, I am new to scripting and tried reaching out for help on the server that I am playing on and not getting an help at all. I would greatly appreciate the help. I have a script I will post below that i am using. I am currently using the script to buy items from players so they have place to sell their items for credits. I would like to add to the script to also show the available amount. I would also like to add the ability for example a player insert 50,000 iron ore they will get 100,000 galactic credits in return. But would like to set it up if they put in 100,000 ore in though i set it up the sell for 50,000 ore they would be able to sell the 100,000 ore and get 200,000 credits. To be able to allow them to put in as much as the box can hold and the transtation to go through if that make sense. I aplogize not sure how to word it correctly in script terms. I got the script off steam workshop of a ship I really would like it to be simple names but i can deal with what is their. Thank you for the help and your time. {{set 'cost' 50}} {{set 'volume' 50000}} <align=center><i>Put in 50 Gold Ingots For 50000 Galactic Credits</I> {{items E.S 'RF-04-BuyBox-2'}} {{set 'itemID' 4346}} {{/items}} {{#items E.S 'RF-05-BuyStuff-2'}} <smallcaps>{{format Count '{0,5}'}} {{Name}}</smallcaps> {{#test Id 'eq' @root.Data.itemID}} {{#test Count 'eq' @root.Data.cost}} {{set 'Payed' true}} <color=green>GOODS VERIFIED</color> {{/test}} {{/test}} {{/items}} {{#items E.S 'RF-04-BuyBox-2'}} {{#test Id 'eq' 4344}} {{#test Count 'le' @root.Data.volume}} <color=red>FUNDS INSUFFICIENT {{set 'emptybox' true}} {{/test}} {{/test}} {{else}} {{set 'emptybox' true}} <color=white><size=3>FUNDS OUT PLEASE TRY AGAIN LATER.</color></size> {{/items}} {{#items E.S 'RF-05-BuyStuff-2'}} {{#test Id 'eq' 4344}} <color=green><i>PLEASE REMOVE YOUR CREDITS</i> {{set 'emptybox' true}} {{/test}} {{/items}} {{#if @root.Data.emptybox}}<color=red><size=15> ⚠</size> {{else}} {{#if @root.Data.Payed}} {{#items E.S 'RF-04-BuyBox-2,RF-05-BuyStuff-2'}} {{~set 'RFBY1' ''}} {{~set 'Amount' ''}} <color=red><size=8>⚙ </size><size=2>TRANSFER IN PROGRESS</size><size=8> ⚙</size></color> {{#test Id in @root.Data.itemID}} {{~set 'RFBY1' 'CargoIn'}} {{/test}} {{#test Id in 4344}} {{~set 'RFBY1' 'RF-05-BuyStuff-2'}} {{~set 'Amount' @root.Data.volume}} {{/test}} {{#ok @root.Data.RFBY1}} {{#move ../. @root.E.S @root.Data.RFBY1 @root.Data.Amount}} {{Source}} -> {{Destination}} {{/move}} {{/ok}} {{/items}} {{else}} {{#items E.S 'RF-04-BuyBox-2'}} <color=white><align=center><color=#00CEEB><size=3>CURRENLY PAYING</size> <smallcaps><i>{{@root.Data.volume}} CREDITS</i> <size=3>COST - {{@root.Data.cost}} ITEMS Deposit exactly {{@root.Data.cost}} ITEMS Exit container and wait for transfer. Do not open until transfer complete <color=red>No refunds Item ID {{Id}}</size></color> {{/items}} {{/if}} {{/if}}
Hello, I've encountered a seemingly simple problem, but I couldn't find a ready-made solution either online or on the forum. How does {{setactive block|device active}} work? How do I specify the block|device correctly? There are no instructions or ready-made examples I could configure. I've tried using coordinates, a file name, and various options: "0123" / '0123' / (0123) / "-1 122 -1" / '-1 122 -1' / (-1 122 -1) / " '0123' " / ' "0123." Of the forum posts I found, these three, unfortunately, didn't help me.
You have to select a block via the "block" command or a defice ofer their commands Code: {{#block @root.E.S x y z}} ... {{setactive . true}} ... {{/block}}
Thank you, there are plenty of instructions on GitHub, but sometimes they simply lack an example for each operand. For example, we searched for a description of the tilde using screenshots.
All commands are used in the Empyrion Scripting-Demo CV https://steamcommunity.com/sharedfiles/filedetails/?id=1751409371 or in the "Vega AI" https://steamcommunity.com/sharedfiles/filedetails/?id=2227639387
I figured this out. Have to use the full 3x3 area. DI and looking at the Hydroponics Bay will be off by 1 block. I have to look at the block below the corner then add 1 to the height to get it working correctly.