我爱619 发表于 2006-12-28 13:21:00

[求助]关于单人模式制作问题?高人请来~

// 01钟乳洞;

int Rule = 1;
int RoundTime = 10;
int PlayerSpawn = 23;
int PlayerSpawnDir = 90;
int PlayerWeapon = 1;
int PlayerWeapon2 = 6;
int PlayerHP = 2000;

这个大家都知道吧~改的啥~第一个是盟主啥的~1
时间什么的~
int trg0;
int stm0;
int trg1;
int stm1;
int trg2;
int stm2;
int trg3;
int stm3;


int r1;
int ra1;
int tm1;
int r2;
int ra2;
int tm2;
int r3;
int ra3;
int tm3;
int player;

int ubl=0;
int ur4=0;
int fxue=0;

int r4;
int ra4;
int tm4;
int r5;
int ra5;
int tm5;
int r6;
int ra6;
int tm6;
int r7;
int ra7;
int tm7;
int r8;
int ra8;
int tm8;
int r9;
int ra9;
int tm9;
int r10;
int ra10;
int tm10;
int r11;
int ra11;
int tm11;
int r12;
int ra12;
int tm12;

int r13;
int ra13;
int tm13;
int r14;
int ra14;
int tm14;
int r15;
int ra15;
int tm15;
int xtimer;

int bl;
int nbl;
int gov=0;

GetDistance(int c1,int c2) {
   SetTarget(0, "char", c1);
   SetTarget(1, "char", c2);
   return Distance(0,1);
}

GetManPlaceDistance(int man,int place)
{
   SetTarget(0, "char", man);
   SetTarget(1, "waypoint", place);
   return Distance(0,1);
}


PreHurtPunishment(int trg,int trgValue,int npc,int stm,int btimer) {
if (trg==trgValue && npc>=0 && GetHP(npc)<GetMaxHP(npc) && stm+btimer>GetGameTime()) {
GameOver(-1);
}
}



这些是什么意思?


GetNPCChar() {
   r1=GetChar("阿飞");
   ra1=GetAnyChar("阿飞");
   r2=GetChar("黑蛇");
   ra2=GetAnyChar("黑蛇");
   r3=GetChar("白蛇");
   ra3=GetAnyChar("白蛇");
   r4=GetChar("诸葛雷");
   ra4=GetAnyChar("诸葛雷");

   r5=GetChar("金狮查猛");
   ra5=GetAnyChar("金狮查猛");
   r6=GetChar("金狮查猛");
   ra6=GetAnyChar("金狮查猛");
   r7=GetChar("极乐童子1");
   ra7=GetAnyChar("极乐童子1");
   r8=GetChar("极乐童子2");
   ra8=GetAnyChar("极乐童子2");
   r9=GetChar("极乐童子3");
   ra9=GetAnyChar("极乐童子3");
   r10=GetChar("极乐童子4");
   ra10=GetAnyChar("极乐童子4");
   r11=GetChar("极乐童子5");
   ra11=GetAnyChar("极乐童子5");

   r12=GetChar("???");
   ra12=GetAnyChar("???");

   r13=GetChar("诸葛雷");
   ra13=GetAnyChar("诸葛雷");
   r14=GetChar("阿飞");
   ra14=GetAnyChar("阿飞");
   r15=GetChar("阿飞.剑气");
   ra15=GetAnyChar("阿飞.剑气");
}
   


这些知道~

}


LeeAbility() {

if (xtimer+60<=GetGameTime()) {
xtimer=GetGameTime();
int rd=Rand(5);
   PlayerPerform("use",4);
   PlayerPerform("use",5);
}
}

DuelMode(int dis,int pl) {
int dd=GetDistance(player,pl);
if (dd>=dis){
if (bl==0) {
        bl=GetGameTime();
} else
{
   if (bl+10>=GetGameTime()) {
    PlayerPerform("block",1);
   }
   else
   {
   PlayerPerform("block",0);
   }
}
}          

if (dd<dis-50 && nbl+2<GetGameTime()){
    bl=0;
    nbl=GetGameTime();
    PlayerPerform("block",0);
}
}





Scene1() {





不知道是啥~


if (trg0==0 && r2>=0 && r3>=0 && r1>=0 && player>=0){
      //Insert Code Here;


ChangeBehavior(r1,"wait");
ChangeBehavior(r3,"kill",r1);
ChangeBehavior(r2,"kill",r1);


人物对话什么的~R1是谁~具体也不明白??

Perform(r3,"pause",3);
Perform(r2,"say","不知死活的家伙,看看是谁要谁的脑袋!");
Perform(r2,"pause",13);
Perform(r1,"say","我的剑不是用来削蜡烛的,我的剑是用来杀人的!");
Perform(r1,"pause",4);
Perform(r3,"say","好,只要你能照这样做一遍,我就给五十!");
Perform(r3,"pause",4);
Perform(r1,"say","千金太多了,我只要五十两。");
Perform(r1,"pause",4);
Perform(r3,"say","哈哈,我这头颅千金难买……");
Perform(r3,"pause",4);
Perform(r1,"say","你的脑袋能值几两银子?”");
Perform(r1,"pause",8);
Perform(r3,"say","只要有比我兄弟更快的剑,我兄弟非但将这包袱送给他,连脑袋也送给他!");
Perform(r3,"pause",4);
Perform(r2,"say","这包袱是人家情愿送给咱们的,只要有人的剑法比我兄弟更快,我也情愿将这包袱双手奉上。");
Perform(r2,"pause",8);
Perform(r3,"say","原来此地竟还有高人,我兄弟倒险些看走眼了");
Perform(r3,"pause",8);
Perform(r1,"say","竟然被这种剑法吓倒,真是没出息!");
Perform(r1,"pause",6);
Perform(r4,"say","既然是两位看上了这包东西,在下还有什么话好说的,两位就...请拿去吧");
Perform(r4,"pause",4);
Perform(r2,"say","你还是认出了我们,总算眼睛还没有瞎");
Perform(r2,"pause",2);
Perform(r4,"say","好快的剑...两位莫非就是……就是‘碧血双蛇’



对话~~
PlayerPerform("say","我不是说过请你喝吗.");这个是主角的说话~

    stm0=GetGameTime();
      trg0++;
   }

if (trg0==1 && stm0+10<=GetGameTime() && ra4>=0) {
RemoveNPC(ra4);
}
   if (trg0==1 && stm0+10<=GetGameTime() && r2<0 && r3<0){// Please Complete the Condition
      //Insert Code Here;


        SetTarget(1,"waypoint",23);
      ChangeBehavior(r1,"attacktarget",1);
      Perform(r1,"use",15);
      Say(ra2,"好...快...的...剑");
      stm0=GetGameTime();
      trg0++;
   }

   if (trg0==2 && stm0+1<=GetGameTime() && GetDistance(r1,player)<60){// Please Complete the Condition
      //Insert Code Here;

      ChangeBehavior(r1,"idle");
      Perform(r1,"faceto",player);
      Perform(r1,"use",15);
      AddNPC("ZhuGeLei");
       stm0=GetGameTime();
      trg0++;
   }

   if (trg0==3 && stm0+2<=GetGameTime() && GetDistance(player,r1)<=150 && r4<0){// Please Complete the Condition
      //Insert Code Here;
不明白~?????????????????????????

    stm0=GetGameTime();
      trg0++;
   }

   if (trg0==8 && stm0+10<=GetGameTime()){// Please Complete the Condition
      //Insert Code Here;

      RemoveNPC(r1);

      stm0=GetGameTime();
      trg0++;
   }

   if (trg0==9 && stm0+10<=GetGameTime() ){// Please Complete the Condition
      //Insert Code Here;




      stm0=GetGameTime();
      trg0++;
   }

}



Scene2() {

   if (trg1==0 && trg0>=9){
      //Insert Code Here;

   AddNPC("ShenMiMan");             

      stm1=GetGameTime();
      trg1++;
   }

   if (trg1==1 && stm1+2<=GetGameTime() && GetManPlaceDistance(player,0)<300 ){// Please Complete the Condition
      //Insert Code Here;

ChangeBehavior(r12,"follow",player);



也不知道


   AddNPC("JinShiChaMeng2");
   AddNPC("JiLe1");
   AddNPC("JiLe2");
   AddNPC("JiLe3");
   AddNPC("JiLe4");
   AddNPC("JiLe5");
   AddNPC("Fei2_1");
   AddNPC("FeiQi2");
这个是加入游戏的人~文件名~

ChangeBehavior(r15,"follow",r14);
ChangeBehavior(r14,"wait");
ChangeBehavior(r6,"follow",r14);
ChangeBehavior(r11,"follow",r14);
ChangeBehavior(r10,"follow",r14);
ChangeBehavior(r9,"follow",r14);
ChangeBehavior(r8,"follow",r14);
ChangeBehavior(r7,"follow",r14);


表示人物的什么吧??


OnStart()
{
   AddNPC("Fei2");
   AddNPC("HeiShe");
   AddNPC("BaiShe");
   AddNPC("ZhuGeLei");
/*
   AddNPC("ZhuGeLei");
   AddNPC("JinShiChaMeng");
   AddNPC("JinShiChaMeng2");
   AddNPC("JiLe1");
   AddNPC("JiLe2");
   AddNPC("JiLe3");
   AddNPC("JiLe4");
   AddNPC("JiLe5");
   AddNPC("ShenMiMan");

   AddNPC("ZhuGeLei1");
   AddNPC("Fei2_1");
   AddNPC("FeiQi2");
*/





这个不是人物加入就是人物死亡什么的~


AlwaysDo() {
if (GetHP(player)<=0) { GameOver(-1); }
//Insert Code Here;

if (r4>0 && GetHP(r1)<GetMaxHP(r1) && gov==0) {
PlayerPerform("say","小兄弟!!");
Perform(r1,"say","我帮了你...你...竟然偷袭....啊....!!");
Perform(r1,"crouch",1);
gov=GetGameTime();
}





失败的什么吧~???


*/
}



OnUpdate()
{
    player = GetAnyChar("player");
    if (player < 0){
      return 0;
   }


   GetNPCChar();

   AlwaysDo();

   Scene1();
   Scene2();
   Scene3();
   Scene4();


}

不明白~





希望大家会做单人的告诉偶一下~??偶也想做一和单人~谢谢了~

木木笨笨 发表于 2006-12-28 13:51:00

re:问问题问德 不明不白的自己去下宝典看

问问题问德 不明不白的
自己去下宝典看

feijian00123 发表于 2006-12-28 16:56:00

re:[QUOTE][b]下面引用由[u]我爱...

下面引用由我爱619发表的内容:

// 01钟乳洞;

int Rule = 1;
int RoundTime = 10;
int PlayerSpawn = 23;
int PlayerSpawnDir = 90;
in...

诱惑の猪 发表于 2007-1-10 19:23:00

re:大家有人嫩告诉我咋修改人物的样子吗??不...

大家有人嫩告诉我咋修改人物的样子吗??不要求外形有大的变化 只要颜色修改的方法旧好了啊

诱惑の猪 发表于 2007-1-10 19:27:00

re:[em10][FLY]告诉我啊 求你们啊...

告诉我啊 求你们啊 大哥哥 大姐姐啊

暗夜蝈爵 发表于 2007-4-8 10:25:00

re:支持~~~~~~~~~[em01]

支持~~~~~~~~~

子夜£十字流星 发表于 2007-4-8 11:06:00

re:宝典上说的很明白啊[em31]

宝典上说的很明白啊

小鱼儿 发表于 2007-4-11 12:33:00

re:[em14]没研究..

没研究..

pgw00k 发表于 2009-8-16 10:53:00

宝典比较全啊~~~

提鸡毛闯天下 发表于 2015-2-15 16:05:00

:youxihou3:
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: [求助]关于单人模式制作问题?高人请来~