这是什么编程语言?做什么用的

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;
}
}
展开
 我来答
愤怒的波导弹
2010-12-18 · TA获得超过588个赞
知道小有建树答主
回答量:273
采纳率:0%
帮助的人:293万
展开全部
C或者C++
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
imkbc
2010-12-18 · 超过24用户采纳过TA的回答
知道答主
回答量:184
采纳率:0%
帮助的人:59万
展开全部
C
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式