这是什么编程语言?做什么用的
intRule=10;intRoundTime=10;intPlayerSpawn=9;intPlayerSpawnDir=90;intPlayerWeapon=5;in...
int Rule = 10;
int RoundTime = 10;
int PlayerSpawn = 9;
int PlayerSpawnDir = 90;
int PlayerWeapon = 5;
int PlayerWeapon2 = 1;
int PlayerHP = 9000;
int trg0 = 0;
int trg1 = 0;
int trg2 = 0;
int trg3 = 0;
int trg4 = 0;
int trg5 = 0;
int trg6 = 0;
OnStart()
{
AddNPC("npc01_01");
AddNPC("npc01_02");
AddNPC("npc01_03");
}
GotoLeader(int c)
{
int c2 = GetChar("军枪哨兵长");
if (c2 >= 0)
{
ChangeBehavior(c, "follow", c2);
SetTarget(0, "char", c2);
ChangeBehavior(c, "attacktarget", 0);
return 1;
}
return 0;
}
Report(int c1, int c2, int c3)
{
if (c1>=0 && c3>=0)
{
SetTarget(0, "char", c1);
SetTarget(1, "char", c3);
if (Distance(0, 1) < 100)
{
if (c2 >= 0)
{
ChangeBehavior(c2, "follow", c3);
}
ChangeBehavior(c1, "follow", c3);
Perform(c1, "pause", 4);
Perform(c1, "say", "报告哨兵长!发现入侵者!!");
Perform(c1, "faceto", c3);
int player = GetChar("player");
ChangeBehavior(c3, "follow", player);
Perform(c3, "say", "在那?所有人跟我来!");
Perform(c3, "pause", 3);
Perform(c3, "faceto", c1);
return 1;
}
}
return 0;
}
OnUpdate()
{
int player = GetChar("player");
if (player < 0)
{
return 0;
}
int c;
int c2;
int c3;
if (trg0 == 0)
{
c = GetChar("军枪哨兵长");
c2 = GetChar("铁枪哨兵·甲");
c3 = GetChar("铁枪哨兵·乙");
if (c>=0 && c2>=0 && c3>=0)
{
Perform(c, "say", "你们都听到萧老大说的了,给我注意四周的动静!有任何风吹草动立刻回报!");
Perform(c, "faceto", c2);
ChangeBehavior(c2, "patrol", 0, 1, 4, 2, 3);
Perform(c2, "say", "是!");
Perform(c2, "faceto", c);
ChangeBehavior(c3, "patrol", 18, 19, 75, 55, 79, 38, 77, 78, 14, 20);
Perform(c3, "say", "是!");
Perform(c3, "pause", 3);
Perofrm(c3, "faceto", c);
trg0 = 1;
}
} 展开
int RoundTime = 10;
int PlayerSpawn = 9;
int PlayerSpawnDir = 90;
int PlayerWeapon = 5;
int PlayerWeapon2 = 1;
int PlayerHP = 9000;
int trg0 = 0;
int trg1 = 0;
int trg2 = 0;
int trg3 = 0;
int trg4 = 0;
int trg5 = 0;
int trg6 = 0;
OnStart()
{
AddNPC("npc01_01");
AddNPC("npc01_02");
AddNPC("npc01_03");
}
GotoLeader(int c)
{
int c2 = GetChar("军枪哨兵长");
if (c2 >= 0)
{
ChangeBehavior(c, "follow", c2);
SetTarget(0, "char", c2);
ChangeBehavior(c, "attacktarget", 0);
return 1;
}
return 0;
}
Report(int c1, int c2, int c3)
{
if (c1>=0 && c3>=0)
{
SetTarget(0, "char", c1);
SetTarget(1, "char", c3);
if (Distance(0, 1) < 100)
{
if (c2 >= 0)
{
ChangeBehavior(c2, "follow", c3);
}
ChangeBehavior(c1, "follow", c3);
Perform(c1, "pause", 4);
Perform(c1, "say", "报告哨兵长!发现入侵者!!");
Perform(c1, "faceto", c3);
int player = GetChar("player");
ChangeBehavior(c3, "follow", player);
Perform(c3, "say", "在那?所有人跟我来!");
Perform(c3, "pause", 3);
Perform(c3, "faceto", c1);
return 1;
}
}
return 0;
}
OnUpdate()
{
int player = GetChar("player");
if (player < 0)
{
return 0;
}
int c;
int c2;
int c3;
if (trg0 == 0)
{
c = GetChar("军枪哨兵长");
c2 = GetChar("铁枪哨兵·甲");
c3 = GetChar("铁枪哨兵·乙");
if (c>=0 && c2>=0 && c3>=0)
{
Perform(c, "say", "你们都听到萧老大说的了,给我注意四周的动静!有任何风吹草动立刻回报!");
Perform(c, "faceto", c2);
ChangeBehavior(c2, "patrol", 0, 1, 4, 2, 3);
Perform(c2, "say", "是!");
Perform(c2, "faceto", c);
ChangeBehavior(c3, "patrol", 18, 19, 75, 55, 79, 38, 77, 78, 14, 20);
Perform(c3, "say", "是!");
Perform(c3, "pause", 3);
Perofrm(c3, "faceto", c);
trg0 = 1;
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询