| Blockland Forums > Modification Help |
| 2 Questions. |
| (1/2) > >> |
| MrPickle:
Would it be possible to type some random /command and then a mini-game is created and everyone in the server gets put into that mini-game. Whats the thing for when you kill someone, like for the score when you kill someone it puts it up x. |
| Space Guy:
%client.incScore(%score); I think For creating minigames auto on my server I simulated open GUI, Fav 1, Click "Start". With the method for "no games except admin's". Use %client.minigame and do a loop through all players and set their minigame to that. Minigames are scriptobjects which have variables and some code but nothing else if you want to create them manually, use (F11 ID).client.minigame.dump(); when "hosting" a minigame. |
| MrPickle:
Thanks Space. for the %client.incScore how would you check if its gone up? Say you wanted them to mount the wrench when they kill someone. |
| Space Guy:
--- Code: ---package ScoreCheck { function gameConnection::incScore(%this,%score) { if(%score > 0 && isObject(%this.player)) { %this.player.mountImage(wrenchImage,0); } Parent::incScore(%this,%score); } } activatePackage(ScoreCheck); --- End code --- Just a guess. Try 0,wrenchImage if it doesn't work. |
| MrPickle:
Hmmm, Isnt there any other way to check if its gone up. Not using >/</=/<=/>= |
| Navigation |
| Message Index |
| Next page |