file Some cool ideas

  • IsraeliRD
  • IsraeliRD's Avatar Topic Author
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
  • Posts: 3502
  • Thank you received: 912
31 Dec 2006 18:22 #1
I need RM and Phil or Jase code and create 2 quick ideas:

RM : Please add in an Ultimate Time in the scoreboard, so that you have Par Time, Platinum Time and Ultimate Time. I wanna add in some challenge for players who play MBP

RM+Jase/Phil: Make a Start sign Like the finish sign that says Finish Here, but this one says: Start Here

Just an idea

"matan, now i get what you meant a few years back when you said that "the level in mbg is beyond me" after the last rampage i noticed things were insane, and now i truly feel that too" - Dushine, 2015.

Please Log in or Create an account to join the conversation.

  • technostick
  • technostick's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Posts: 403
  • Thank you received: 32
31 Dec 2006 22:32 #2
1. Expect soon. What color should it be? Purple?
2. Can do coding, but not the sign

Please Log in or Create an account to join the conversation.

  • IsraeliRD
  • IsraeliRD's Avatar Topic Author
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
  • Posts: 3502
  • Thank you received: 912
31 Dec 2006 22:45 #3
Ummmm Where is the file with gold time and quilfy time in it I can't find it anywhere?

"matan, now i get what you meant a few years back when you said that "the level in mbg is beyond me" after the last rampage i noticed things were insane, and now i truly feel that too" - Dushine, 2015.

Please Log in or Create an account to join the conversation.

  • technostick
  • technostick's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Posts: 403
  • Thank you received: 32
01 Jan 2007 01:53 #4
In my opinion, adding a new time parameter will be very difficult, as it affects the way in which .mis files are read. (An .mis file would have to contain a line describing UltimateTime = )

Please Log in or Create an account to join the conversation.

  • robotmarble
  • robotmarble's Avatar
  • Visitor
  • Visitor
01 Jan 2007 03:09 #5
And this is hard why? You can delete the god time line in the .mis file and it rases from the scroreboard.

Please Log in or Create an account to join the conversation.

  • IsraeliRD
  • IsraeliRD's Avatar Topic Author
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
  • Posts: 3502
  • Thank you received: 912
01 Jan 2007 09:17 #6
goldTime is in fact Platinum Time. Therefore, it will NOT be deleted. All MBP missions should have Platinum Time and Ultimate Time, so what I'm asking for is an addition of a 5th line

The file with the times is found in one of the scripts.. It is called game.cs

here's the code in it


Code://
// Torque Game Engine
//
// Copyright (c) 2001 GarageGames.Com
//

//
// Game start / end events sent from the server
//

function clientCmdGameStart()
{
}

function getBestTimes(%mis)
{
for(%i = 0; %i < 3; %i++)
{
$hs[%i] = $pref::highScores[%mis, %i];
if($hs[%i] $= )
{
if(MissionInfo.time)
$hs[%i] = MissionInfo.time @ \tMatan Weissman;
else
$hs[%i] = 5998999\tMatan Weissman;
}
}
}

function clientCmdGameEnd()
{
if($playingDemo)
return;

getBestTimes($Server::MissionFile);
$highScoreIndex = ;
for(%i = 0; %i < 3; %i++)
{
if($Game::ScoreTime < getField($hs[%i], 0))
{
for(%j = 2; %j > %i; %j--)
{
$hs[%j] = $hs[%j - 1];
}
$highScoreIndex = %i;
$hs[%i] = $Game::ScoreTime @ \t @ $pref::highScoreName;
break;
}
}
reformatGameEndText();
Canvas.pushDialog(EndGameGui);
if($highScoreIndex !$= )
{
if($highScoreIndex == 0)
%msgIn = ;
else if($highScoreIndex == 1)
%msgIn = second;
else
%msgIn = third;
EnterNameText.setText(<just:center><font:Expo:50>Well Done!\n<font:DomCasualD:30>You have the @ %msgIn @ top time!);
Canvas.pushDialog(EnterNameDlg);
EnterNameEdit.setSelectionRange(0, 100000);
}
}

function highScoreNameAccept()
{
Canvas.popDialog(EnterNameDlg);
for(%i = 0; %i < 3; %i++)
$pref::highScores[$Server::MissionFile, %i] = $hs[%i];
}

function highScoreNameChanged()
{
$hs[$highScoreIndex] = $Game::ScoreTime @ \t @ $pref::highScoreName;
reformatGameEndText();
}

function reformatGameEndText()
{
// Final Score
%text =
<shadow:1:1><tab:240,250> @
<font:Expo:50><color:ffff00>Your Time:\t<color:fff090> @
formatTime($Game::ScoreTime) @ <color:000000><font:Expo:30>\n<just:center>;

// Qualification time
if($Game::Qualified)
{
%text = %text @ <color:00cc00> @ ((MissionInfo.goldTime && $Game::ScoreTime < MissionInfo.goldTime) ?
You beat the <color:888c8d>PLATINUM<color:00cc00> Time! : You passed the Par Time!);
}
else
%text = %text @ <color:ff2200>You didn't pass the Par Time!;

// Basic time info
%text = %text @
\n<just:left><font:Arial:14>\n<lmargin:65><tab:235,245><shadowcolor:ffffff7f><shadow:1:1>;
if (MissionInfo.time)
%text = %text @
<color:990000> @
<font:DomCasualD:32>Par Time:\t @
($Game::Qualified? <shadowcolor:ffffff7f><color:159cf1>: <shadowcolor:0000007f><color:ff2200>) @
formatTime(MissionInfo.time) @ \n;
else
%text = %text @ <color:990000><font:DomCasualD:32>Par Time:\t\t99:59.99\n;

if(MissionInfo.goldTime)
{
%text = %text @ <shadowcolor:ffffff7f><color:888c8d><font:DomCasualD:32>Platinum Time:\t<color:888c8d><shadowcolor:0000007f> @
formatTime(MissionInfo.goldTime) @ \n;
}

%text = %text @
<shadowcolor:ffffff7f><color:6666ff> @
<font:DomCasualD:32>Time Passed:\t @ formatTime($Game::ElapsedTime) @ \n @
<font:DomCasualD:32>Clock Bonuses:\t @ formatTime($Game::BonusTime) @ \n;
%text = %text @ <font:Arial:14>\n<font:DomCasualD:32><color:ceecff>Top Times:\n;
for(%i = 0; %i < 3; %i++)
{
%time = getField($hs[%i], 0);
%name = getField($hs[%i], 1);
%text = %text
@ <shadowcolor:ffffff7f><color:996633><font:DomCasualD:32> @ %i+1 @ . @ %name @ \t
@ (%time < MissionInfo.goldTime ? <shadowcolor:0000007f><color:888c8d> : ) @ formatTime(%time) @ \n;
}
// Display the end-game screen
EndGameGuiDescription.setText(%text);
}


//

function formatTime(%time)
{
%isNeg = \t;
if (%time < 0)
{
%time = -%time;
%isNeg = -\t;
}
%hundredth = mFloor((%time % 1000) / 10);
%totalSeconds = mFloor(%time / 1000);
%seconds = %totalSeconds % 60;
%minutes = (%totalSeconds - %seconds) / 60;

%secondsOne = %seconds % 10;
%secondsTen = (%seconds - %secondsOne) / 10;
%minutesOne = %minutes % 10;
%minutesTen = (%minutes - %minutesOne) / 10;
%hundredthOne = %hundredth % 10;
%hundredthTen = (%hundredth - %hundredthOne) / 10;

return %isNeg @ %minutesTen @ %minutesOne @ : @
%secondsTen @ %secondsOne @ . @
%hundredthTen @ %hundredthOne;
}

"matan, now i get what you meant a few years back when you said that "the level in mbg is beyond me" after the last rampage i noticed things were insane, and now i truly feel that too" - Dushine, 2015.

Please Log in or Create an account to join the conversation.

  • technostick
  • technostick's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Posts: 403
  • Thank you received: 32
01 Jan 2007 12:47 #7
That settles it, then!

Please Log in or Create an account to join the conversation.

  • robotmarble
  • robotmarble's Avatar
  • Visitor
  • Visitor
02 Jan 2007 00:37 #8
Wait, How do you change the properties? There is nothing, but the appearance scripts there you could use that to change Nardo Polo to Matan and Gold to platnuim, but nothing else.

Please Log in or Create an account to join the conversation.

Moderators: Doomblah
Time to create page: 0.990 seconds
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.