Hacker News new | ask | show | jobs
by walterh 4914 days ago
Hi Dan, Adding in-game scriptability means you can do some serious in-game world building with a little knowledge of Javascript. I haven't used out-of-game tools like mcedit. I personally like the ability to prototype at the in-game command prompt. E.g...

  /js box('35:15',4,9,1)
...creates a 2001 Monolith at the current location. The real power of ScriptCraft though is its ability to load and execute javascript files containing functions, and the ability to easily extend the Drone class. E.g.

  // file monolith.js 
  Drone.extend('monolith',function(){
      return this.box('35:15',4,9,1);
  });
After loading monolith.js, players can do the following to create 3 monoliths...

  /js monolith().right(6).monolith().right(6).monolith()
I've provided a couple of example scripts but it will be interesting to see what players do with this.