mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Create how_to_handle_game_events.js
This commit is contained in:
@@ -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+"!");
|
||||
});
|
||||
Reference in New Issue
Block a user