Sorry, just seen that you answered.
Sorry for late reply.
Gonna try
Just put
MooshPit_Init(); before while(true){
MooshPit_Update(); after while(true){
It seems there's somthing, that I make wrong.
So, this is the global DayNight Script, I actually use
const int dayLength = 5; //Length of a day or night in minutes;
const int I_NIGHT = 45; //An unused item ID, placed into Link's inventory or removed to change day/night
const int dayDMAP0 = 0; //Daytime DMap #0
const int nightDMAP0 = 1; //Night DMap #0
const int dayDMAP1 = -1; //Daytime DMap #1
const int nightDMAP1 = -1; //Night DMap #1
const int dayDMAP24 = 24; //Daytime DMap #2
const int nightDMAP24 = 25; //Night DMap #2
const int dayDMAP25 = -25; //Daytime DMap #3
const int nightDMAP25 = -25; //Night DMap #3
global script DayNight
{void changeNight(bool cycle)
{if(cycle){
if(Link->Item[I_NIGHT])Link->Item[I_NIGHT]=false;
else{Link->Item[I_NIGHT]=true;}
}if(Game->GetCurScreen()!=128){
if(dayDMAP0>=0&&nightDMAP0>=0){
if(Game->GetCurDMap()==dayDMAP0 && Link->Item[I_NIGHT]){
Link->PitWarp(nightDMAP0, Game->GetCurScreen());
} else if(Game->GetCurDMap()==nightDMAP0 && !Link->Item[I_NIGHT]){
Link->PitWarp(dayDMAP0, Game->GetCurScreen());
}
}
if(dayDMAP1>=0&&nightDMAP1>=0){
if(Game->GetCurDMap()==dayDMAP1 && Link->Item[I_NIGHT]){
Link->PitWarp(nightDMAP1, Game->GetCurScreen());
} else if(Game->GetCurDMap()==nightDMAP1 && !Link->Item[I_NIGHT]){
Link->PitWarp(dayDMAP1, Game->GetCurScreen());
}
}
if(dayDMAP24>=24&&nightDMAP24>=24){
if(Game->GetCurDMap()==dayDMAP24 && Link->Item[I_NIGHT]){
Link->PitWarp(nightDMAP24, Game->GetCurScreen());
} else if(Game->GetCurDMap()==nightDMAP24 && !Link->Item[I_NIGHT]){
Link->PitWarp(dayDMAP24, Game->GetCurScreen());
}
}
if(dayDMAP25>=24&&nightDMAP25>=24){
if(Game->GetCurDMap()==dayDMAP25 && Link->Item[I_NIGHT]){
Link->PitWarp(nightDMAP25, Game->GetCurScreen());
} else if(Game->GetCurDMap()==nightDMAP25 && !Link->Item[I_NIGHT]){
Link->PitWarp(dayDMAP25, Game->GetCurScreen());
}
}// You can copy this entire IF statement and change it to, say, dayDMAP2 and nightDMAP3 to create an
// additional DMap to have a day/night cycle for. This can be done indefinitely.
}
}
void run(){
int frame = 0;
int min = 0;
while(true){
bool cycle = false;
if(min==dayLength){cycle=true;min=0;}
changeNight(cycle);
Waitdraw();
frame++;
if(frame==3600){
frame=0;
min++;
}
Waitframe();
}
}
Can you help me to combine it with the global MooshPit script?
I make to much mistakes and I'm still a bit afraid of scripting.
Always fear to cause Errors, that I possibly can't fix
I tried on my own, but I am totally confused by now :tard: