Or we can just play them as they are released, and take notes for nominations in a text file.

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
void CheckRoomBackground()
{
if ((intHour<6)||(intHour>=19 && intMinute>=1)) SetBackgroundFrame(0); // Night Background
else if (intHour==6 && intMinute==0) SetBackgroundFrame(1); // Dawn Background
else if (intHour>=6 && intHour<=18) SetBackgroundFrame(2); // Day Backgrund
else if (intHour==19 && intMinute==0) SetBackgroundFrame(3); // Sunset Background
}
// new module script
void AdjustClock()
{
if (intHour<=11)Bclock24.NormalGraphic=100+intHour; // 100 is sprite number that corresponds your clock at 00:00
else Bclock24.NormalGraphic=100+intHour-12; // Need to remove 12h to get the correct sprite number
}
void CheckRoomBackground()
{
if ((intHour<6)||(intHour>=19 && intMinute>=1)) SetBackgroundFrame(0); // Night Background
else if (intHour==6 && intMinute==0) SetBackgroundFrame(1); // Dawn Background
else if (intHour>=6) SetBackgroundFrame(2); // Day Backgrund
else if (intHour==19 && intMinute==0) SetBackgroundFrame(3); // Sunset Background
}
import void AdjustClock();
if (intHour<=11)Bclock24.NormalGraphic=100+intHour; // 100 is sprite number that corresponds your clock at 00:00
else Bclock24.NormalGraphic=100+intHour-12; // Need to remove 12h to get the correct sprite number
function room_Load()
{
AdjustClock();
CheckRoomBackground(); // this script can be found in Scripts->CustomScripts and it will change the room background acording to the clock at game start
}
function repeatedly_execute_always()
{
if (gClock.Visible==true)
{
intSecunds++;
if (intSecunds==60*GetGameSpeed())
{
intMinute++;
intSecunds=0;if (intMinute==20) // Because you wish to change the hour at every 20 minutes and not real time (every 60 minutes).
{
intHour++;
intMinute=0;
if (intHour<=11)Bclock24.NormalGraphic=100+intHour; // 100 is sprite number that corresponds your clock at 00:00
else Bclock24.NormalGraphic=100+intHour-12; // Need to remove 12h to get the correct sprite number
if (intHour==12 || intHour==24)
{
Bclock24.NormalGraphic=100; // this resets the clock image to 00:00
if (intHour==24)
{
intHour=0;
intDay++;
}
}
}
CheckRoomBackground(); // this script can be found in Scripts->CustomScripts and it will change the room background acording to the clock at game start
}
//player.SayBackground(String.Format("%d:%d:%d", intHour, intMinute, intSecunds/GetGameSpeed())); // for debug purpose, player will tell the time
}
}
void CheckRoomBackground()
{
if ((intHour<6)||(intHour>=19 && intMinute>=1)) SetBackgroundFrame(0); // Night Background
else if (intHour==6 && intMinute==0) SetBackgroundFrame(1); // Dawn Background
else if (intHour>=6 && intMinute>=1) SetBackgroundFrame(2); // Day Backgrund
else if (intHour==19 && intMinute==0) SetBackgroundFrame(3); // Sunset Background
}
function room_Load() // remember to plug this function to room events, just copy/pasting it won't work.
{
CheckRoomBackground(); // this script can be found in Scripts->CustomScripts and it will change the room background according to the clock at game start
}
Quote
I did not understand. I think I choose English translation for main language.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 2.188 seconds with 20 queries.