Thanks for the reply. Here is code from one map.
void MapInit()
{
hookRetrace("tick");
if(flag[Flag_Test] == 1)
EntityMove(4,"L2 D2");
if(flag[Flag_Test] == 1)
EntityMove(3,"U4 R2");
SetPlayer(player);
onMapLoaded();
}
void ZonetoTutorial()
{
mapswitch("tutorial.map", 7, 6, "R", TRANS_BOX);
}
void ZoneToForestBuilding1()
{
mapswitch("ForestMapBuildings.map", 11, 17, "U", TRANS_BOX);
}
void ZoneToForestBuilding2()
{
mapswitch("ForestMapBuildings.map", 36, 19, "U", TRANS_BOX);
}
void ZoneToForestBuilding3()
{
mapswitch("ForestMapBuildings.map", 17, 42, "U", TRANS_BOX);
}
void SignToDrobieVillage()
{
TextBox("", "To Drobie Village","","");
}
void SignToMordicValley()
{
TextBox("", "To Mordic Valley","","");
}
void SignToDarkweedForest()
{
TextBox("", "To Darkweed Forest","","");
}
void TalkToSteve()
{
TextBox("", "Darkweed Forest is full of snakes.","Don't say I didn't warn you.", "");
}
void ZoneToCharksPlace()
{
mapswitch("CharksPlace(B).map", 33, 8, "L", TRANS_BOX);
}
void NorthZoneToDarkweedForest()
{
mapswitch("DarkweedForest.map", 0, 16, "R", TRANS_BOX);
}
void SouthZoneToDarkweedForest()
{
mapswitch("DarkweedForest.map", 0, 90, "R", TRANS_BOX);
}
void ZonetoDrobieVillage()
{
mapswitch("DrobieVillage.map", 39, 49, "U", TRANS_BOX);
}
void TalktoHamilton1()
{
if(flag[Flag_Hamilton1] == 0) {
flag[Flag_Hamilton1] = 1;
} else {
if(flag[Flag_Test] == 0) {
TextBox("", "Go away! I wont let you cross.", "", "");
} else {
if(flag[Flag_Test] == 1) {
flag[Flag_Hamilton1] = 1;
TextBox("", "You are a smelly rat!", "", "");
}
void test1()
{
MessageBox("test..");// It wont let me add this or any additional void commands//
}