Create how_to_handle_game_events.js

This commit is contained in:
Kaan Soral
2018-02-03 20:47:00 +03:00
committed by GitHub
parent 3caa5f50c5
commit 23264d77d4
+9
View File
@@ -0,0 +1,9 @@
game.all(function(event,args){
game_log(event,"orange");
game_log(JSON.stringify(args));
});
game.on("trade",function(args){
if(args.buyer!=character.name && args.seller!=character.name)
say("Check out my goods too "+args.buyer+"!");
});