Help pls

Maps and the art of mapmaking.
Faon
Leprechaun
Leprechaun
Posts: 1
Joined: 18 Sep 2012

Help pls

Unread postby Faon » 18 Sep 2012, 14:04

Hello i am trying to do some scripts but i am noob at it so if u could help me pls, i want so display a messagebox and spawn some creatures on the map after hero enters region, but when he does, the game only sleeps then does nothing , the creature is not spawned and the message box dose not pop up, where i am making fault please? here is the script :

Trigger(REGION_ENTER_AND_STOP_TRIGGER,"noway","noway");
function noway ()
if GetCurrentPlayer () == PLAYER_1 then sleep(5);
MessageBox("Maps\SingleMissions\Petty Squabbles\pred.txt");
CreateMonster("Gandalf",CREATURE_BALOR,350,83,43,0,MONSTER_MOOD_WILD,MONSTER_COURAGE_ALWAYS_FIGHT,3.14159);
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"noway",nil);
end;
end;
Thanks for help

Return to “Mapmaking Guild”

Who is online

Users browsing this forum: No registered users and 1 guest