NextColony - list of custom_json commands

in #nextcolony5 years ago (edited)

NextColonyTeaser1.jpg

NextColony is a true blockchain game on steem, thus almost all actions are triggered by custom_json operations (buying an item is initiated by a transfer). In the following you will find a list of commands that will be supported at launch. More commands will follow afterwards.

Structure of a custom_json operation

A custom_json command consists of an id and a json field. All commands in nextcolony have the same id:

nextcolony

and the json field has the following structure:

{"username":"holger80","type":"newuser","command":{"tr_var1":"holger80"}}

where username is the username (currently not used and can be skipped).
type defines the command type and command consists of a dict with the keys tr_var1 to tr_var8.
The command is applied to the user defined in the required_posting_auths field.

newuser

{"username":"holger80","type":"newuser","command":{"tr_var1":"holger80"}}

Creates a new game account with the steem account name.
The command uses one field:

  • tr_var1: steem username

enhance

{"username":"holger80","type":"enhance","command":{"tr_var1":"holger80","tr_var2":"P-ZN2FTQ9F3W0","tr_var3":"coalmine"}}

Starts learning of a skill which is necessary for building a higher level or being able to build ships.

  • tr_var1: username, who will learn the skill
  • tr_var2: planet uid from which the resources are taken
  • tr_var3: skill name

Skill names are:

depots and mines

coalmine, oremine, coppermine, uraniummine,
coaldepot, oredepot, copperdepot, uraniumdepot

special buildings

base, researchcenter, shipyard

booster

coalbooster, orebooster, copperbooster, uraniumbooster

ships

Explorer, Transporter, Corvette, Frigate, Destroyer, Cruiser, Battlecruiser, Carrier, Dreadnought

upgrade

{"username":"holger80","type":"upgrade","command":{"tr_var1":"P-ZN2FTQ9F3W0","tr_var2":"researchcenter"}}

Starts the upgrade of a building. Conditions (sufficient resources and sufficient skill level) must be met.

  • tr_var1: planet uid from which the resources are taken and on which the building is upgraded
  • tr_var2: building name

Building names are:

depots and mines

oredepot, copperdepot, coaldepot, uraniumdepot, 
oremine, coppermine, coalmine, uraniummine

special buildings

shipyard,  base, researchcenter

buildship

{"username":"holger80","type":"buildship","command":{"tr_var1":"P-ZN2FTQ9F3W0","tr_var2":"explorership"}}

Builds one ship when the conditions (resources, no other ship is build, shipyard level and ship skill level) are met.

  • tr_var1: planet uid from which the resources are taken and on which the ship is build
  • tr_var2: ship name

Possible ship names are:

explorership,  transportship, corvette, frigate, destroyer,
cruiser, battlecruiser, carrier, dreadnought

explorespace

{"username":"holger80","type":"explorespace","command":{"tr_var1":"P-ZN2FTQ9F3W0","tr_var2":53,"tr_var3":-317}}

Starts a exploration mission, a explorer must be available and ready on the planet.

  • tr_var1: planet uid from which the explorership starts and the uranium is taken for providing fuel for the flight
  • tr_var2: horizontal space coordinate
  • tr_var3: vertical space coordinate

transport

{"username":"holger80","type":"transport","command":{"tr_var1":2,"tr_var2":"P-ZN2FTQ9F3W0","tr_var3":"52","tr_var4":"-321","tr_var5":15,"tr_var6":15,"tr_var7":15,"tr_var8":15}}

Transports resources to a location and returns to the start position afterwards.

  • tr_var1: number of transporter which should be used, must be available and ready on the planet
  • tr_var2: planet uid from which the transportship starts and the resources are taken
  • tr_var3: horizontal space coordinate of a planet
  • tr_var4: vertical space coordinate of a planet
  • tr_var5: amount of coal (can be a positive float or 0)
  • tr_var6: amount of ore (can be a positive float or 0)
  • tr_var7: amount of copper (can be a positive float or 0)
  • tr_var8: amount of uranium (can be a positive float or 0)

activate

{"username":"holger80","type":"activate","command":{"tr_var1":"C3-ZSQFKQ5LW9S","tr_var2":"P-ZN2FTQ9F3W0"}}

Activates an item, the effect depends on the item.

  • tr_var1: item uid, must be owned by the user
  • tr_var2: planet uid on which the item is activated

giftitem

{"username":"holger80","type":"giftitem","command":{"tr_var1":"C3-ZUA1B4B7UPS","tr_var2":"holger.random"}}

Gifts an item to another player.

  • tr_var1: item uid, must be owned by the user
  • tr_var2: username to which the item is gifted

NextColony will start on

April 21, 2019 20:00:00 UTC

See you in the game :)

Sort:  

Congratulations @holger80! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published more than 250 posts. Your next target is to reach 300 posts.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!

Hi, @holger80!

You just got a 3.1% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

This post has been included in the latest edition of The Steem News in 10 posts - a compilation of the key news stories on the Steem blockchain.

Hi @holger80!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 7.772 which ranks you at #33 across all Steem accounts.
Your rank has improved 26 places in the last three days (old rank 59).

In our last Algorithmic Curation Round, consisting of 323 contributions, your post is ranked at #4.

Evaluation of your UA score:
  • Your follower network is great!
  • The readers appreciate your great work!
  • Great user engagement! You rock!

Feel free to join our @steem-ua Discord server

@holger80 - please help me tell the team to implement keychain! It is a million times better experience - and look what happened with dpoll and the foundation vote!

Steemconnect was best practice but they never got their act together and their widget always demands active key to log in. Now that keychain exists - we can finally refuse to use steemconnect!

I don't care how 'safe' it is, I should never need active key to record custom json transactions!

I would prefer to enter my posting key directly than use steem connect!

Thank you - on behalf of all the sane gamers out here lost in space :)