import "std.zh" /////////////////////////// /// NPC Script Room Guy /// /// v0.2 /// /// 8th March, 2019 /// /// By: ZoriaRPG /// /////////////////////////// //ZQuest Screen Menu Sets Options //Set Screen->String to the string to display //Set Screen->Catchall to the delay time, if the roomtype is none. //Otherwise, you can set a default delay on the enemy using D0. npc script screenguy { const int DELAY = 20; //Time to spawn. void run(int delay) { delay = this->InitD[0] > 0 ? delay : DELAY; if ( !Screen->RoomType ) { if ( Screen->Catchall ) { delay = Screen->Catchall; } } this->CollDetection = false; //this->DrawYOffset = -32768; //Waitframes(Screen->Catchall); //might be in use depending on room type Waitframes(delay); Screen->Message(Screen->String); } }