Author Topic: 2 Questions.  (Read 1432 times)

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.

%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.

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.

Code: [Select]
package ScoreCheck
{
 function gameConnection::incScore(%this,%score)
 {
  if(%score > 0 && isObject(%this.player))
  {
   %this.player.mountImage(wrenchImage,0);
  }
  Parent::incScore(%this,%score);
 }
}
activatePackage(ScoreCheck);

Just a guess. Try 0,wrenchImage if it doesn't work.

Hmmm, Isnt there any other way to check if its gone up. Not using >/</=/<=/>=

Code: [Select]
package ScoreCheck
{
 function gameConnection::incScore(%this,%score)
 {
  if(%score > 0 && isObject(%this.player))
  {
   %this.player.mountImage(wrenchImage,0);
  }
  Parent::incScore(%this,%score);
 }
}[b][color=Red];[/color][/b]
activatePackage(ScoreCheck);
This would cause a syntax error; packages need semicolons at the end of the curly brackets.

Randy's a genius. Space is a Genius. Your both Genius's.