Blockland Forums > Modification Help
"Looping" something in the bottom print?
Red_Guy:
Theres 2 steps to this.
first what everyone has said, you use -1 as the time so it stays forever.
next - is to disable the minigame score display
just add this to your script
--- Code: ---function MinigameSO::displayScoresList(%this)
{
// do nothing
echo("display scores bypassed");
}
--- End code ---
adding it to a package is optional - but do NOT call Parent or it wont work.
This is what I do for my mining mod and it works great. No need for schedules or anything else.
otto-san:
--- Quote from: Red_Guy on June 09, 2011, 03:23:13 PM ---next - is to disable the minigame score display
--- End quote ---
I never even thought of that.
Daenth:
--- Quote from: Red_Guy on June 09, 2011, 03:23:13 PM ---Theres 2 steps to this.
first what everyone has said, you use -1 as the time so it stays forever.
next - is to disable the minigame score display
just add this to your script
--- Code: ---function MinigameSO::displayScoresList(%this)
{
// do nothing
echo("display scores bypassed");
}
--- End code ---
adding it to a package is optional - but do NOT call Parent or it wont work.
This is what I do for my mining mod and it works great. No need for schedules or anything else.
--- End quote ---
Alright a few questions...
1) If I put -1 as the time, does it still update?
2) When it bypasses the Minigame Score Display is it that score display in TDM?
3) Is there a way to do this with T+T's ammo?
--- Quote from: otto-san on June 09, 2011, 02:17:22 PM ---This is (basically) the code I used. I used a servercmd and a time of -1. Even though it's -1, it goes away after about three minutes, so every three minutes, it brings it back up.
--- Code: ---function serverCmdInfo(%client)
{
commandToClient(%client,'bottomPrint',"TEXT", -1, 2, 3, 4);
}
--- End code ---
--- Code: ---function thing_tick()
{
cancel($thingTick);
for(%i = 0; %i < clientGroup.getCount(); %i++)
serverCmdInfo(%client);
$thingTick = schedule(3*60000,0,thing_tick);
}
--- End code ---
--- End quote ---
I'll mess with that and see what I get.
Red_Guy:
--- Quote from: Daenth on June 09, 2011, 03:42:33 PM ---Alright a few questions...
1) If I put -1 as the time, does it still update?
--- End quote ---
if you want a different value, you have to send bottom print again.
what i gave, prevents the minigame score display from overwriting what you print out.
--- Quote from: Daenth on June 09, 2011, 03:42:33 PM ---Alright a few questions...
2) When it bypasses the Minigame Score Display is it that score display in TDM?
--- End quote ---
yes I think this is the same thing.
trace(1) is your friend here -- use it often to see whats going on.
tyler0:
was this ever resovled?