city1toforest1.ksr

来自「永远的伊苏同人游戏.引擎开发+地图编辑器+脚本编辑器+主角/NPC/怪物/魔法编」· KSR 代码 · 共 85 行

KSR
85
字号
static int certificate=0;

PlayWave("moveatonce");
LockKeyMouse();
PlayMidi("undiscovered");
FadeIn(0);
ChangeMap("forest1");
ReadAScriptFile("forest1_npc");
if(find_squirrel==0)
 ReadAScriptFile("forest1_monster");
end if
SetMePos(1664,1696);
SetMeProp(direction,2);
FadeOut(0);
UnlockKeyMouse();

if(appeargirl==2) //已找到松鼠并给了女孩
 ReadAScriptFile("forest1_monster");
 EOF
end if

AddNpc(,2,艾琳娜,8,1664,1568,NULL,0.6,4,3,32,29,47,26,0,10,-1,);

if(find_squirrel==1)
 PlayMidi("jumphappy");
 Talk("艾琳娜","啊,你回来拉","""");
 SetNpcProp("艾琳娜",direction,1);
 SetMeProp(direction,0);
 Talk("艾琳娜","这不是我的小松鼠吗??!","哥哥太感谢你拉!!!""");
 Talk("艾琳娜","真的是帮了我个大忙啊","来我家吃午饭吧哥哥~~""");
 PlayerTalk("这么一说肚子好像真的饿了..."""""); 
 Talk("艾琳娜","呵呵,别客气拉,我要叫爷爷好好答谢你呢~","快来吧 *^^*""");
 SetNpcProp("艾琳娜",active,1);
 MoveNpcTo("艾琳娜",928,1664);
 DelayTime(4000);
 appeargirl=2;  //可以出forest1
 certificate=0;   //资格书还未拿到
 FadeIn(0);
 ChangeMap("mayorroom");
 ReadAScriptFile("mayorroom_npc");
 SetMePos(320,288);
 FadeOut(0);
end if

EOF







































⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?