Jump to content

[Mod] Add goods command


Zoltan

Recommended Posts

This first dabbling in Avorion modding. These scripts adds an 'add goods' command. Heavily based on Aki's work

 

/agoods

Description:

Adds goods to currently boarded ship. Usage:

/agoods <good name> <quantity>

Must capitalize all names

Must replace spaces with _(underscore)

Can not add more then your hold can handle

 

Example:

/agood Steel 100

/agood Steel_Tube 10

 

Files:

data/scripts/commands/agoods.lua

data/scripts/player/cmd/agoods.lua

 

Link to comment
Share on other sites

i cant get this working maybe because both scripts ahve the same name?

 

Windows is probably appending .txt to the Lua file.

 

Start Menu > "folder options" in Search Bar > View tab > uncheck "Hide extensions for known file types", then erase the .txt suffix so that the filename ends only in .lua

 

This should fix it for you. It did for me.

Link to comment
Share on other sites

Does this just make a text based command for giving the player trade goods or is this a command to add trade goods to a station? Suppose its probably the first isn't it :( guess you guys didn't search very hard run this command from inside the game with admin privileges to get a graphical point and click interface to add trade goods

 

/run Entity():addScript("lib/entitydbg.lua")

 

anyway.... anyone got a mod to add trade goods to a station from inside the game??

Link to comment
Share on other sites

  • 9 months later...

Does this just make a text based command for giving the player trade goods or is this a command to add trade goods to a station? Suppose its probably the first isn't it :( guess you guys didn't search very hard run this command from inside the game with admin privileges to get a graphical point and click interface to add trade goods

 

/run Entity():addScript("lib/entitydbg.lua")

 

anyway.... anyone got a mod to add trade goods to a station from inside the game??

 

for example: jump inside the station you made, type /agoods Steel 50000

do that as often as you want with whatever goods you want.  I did it for my turret station.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...