自己做的……还没好心都发出来 就发几个……(其实除了武器不同轻重几率不同以外其他的可以自己复制- -。)
话说不能传附件么 - -自己去复制到文档里好了
blade.pst
string Name = "胡一刀";
int Model = 5;
int Weapon = 17;
int Weapon2 = 26;
int Team = 0;
int View = 3000;
int Think = 5000;
int Attack1 = 30;
int Attack2 = 35;
int Attack3 = 35;
int Guard = 0;
int Dodge = 0;
int Jump = 1;
int Look = 20;
int Burst = 25;
int Aim = 100;
int GetItem = 0;
int Spawn = Rand(100);
int HP = 3000;
int g_selfAddr;
int g_self;
OnInit(int this)
{
g_selfAddr = this;
}
OnStart()
{
g_self = GetSelf(g_selfAddr);
ChangeBehavior(g_self, "run");
}
int trg = 0;
int timer = 0;
OnUpdate()
{
int now = GetGameTime();
int c = 0;
if (c<=0)
{
c = GetChar("冷燕");
}
if (GetHP(g_self)<=0)
{
trg = 0;
}
if (trg==0 && GetHP(g_self)>2000)
{
SetTarget(0, "char", g_self);
SetTarget(1, "char", c);
if (c>0 && Distance(0, 1) < 200 && GetEnemy(g_self)==c)
{
Perform(g_self, "attack");
Perform(g_self,"use",25);
Perform(g_self,"use",4);
Perform(g_self, "say", "嘿嘿~可否让在下领教阁下的高招?");
Perform(g_self, "aggress");
Perform(g_self, "faceto", c);
trg = 1;
}
}
if (trg==0 && GetHP(g_self)<GetMaxHP(g_self) && GetHP(g_self)>2000)
{
Perform(g_self, "attack");
Perform(g_self,"use",25);
Perform(g_self, "say", "接招!");
Perform(g_self,"use",4);
Perform(g_self, "say", "............");
trg = 1;
}
if (trg==1 && GetHP(g_self)<=1500)
{
Perform(g_self, "attack");
Perform(g_self,"use",23);
Perform(g_self, "say", "没看出来你武功竟也小有造诣...看来我得认真了!");
Perform(g_self,"use",34);
Perform(g_self,"use",8);
Perform(g_self,"use",16);
trg = 2;
}
if (trg==2 && GetHP(g_self)<=GetMaxHP(g_self)/3)
{
Perform(g_self, "attack");
Perform(g_self,"use",24);
Perform(g_self, "say", "想不到中原武林竟也有如此好手...刀剑无眼,小心了!");
Perform(g_self,"use",19);
Perform(g_self,"use",8);
Perform(g_self,"use",16);
trg = 0;
}
}
dagger.pst
string Name = "冷燕";
int Model = 1;
int Weapon = 14;
int Weapon2 = 13;
int Team = 0;
int View = 5000;
int Think = 5000;
int Attack1 = 35;
int Attack2 = 40;
int Attack3 = 25;
int Guard = 0;
int Dodge = 0;
int Jump = 1;
int Look = 10;
int Burst = 10;
int Aim = 100;
int GetItem = 0;
int Spawn = Rand(10);
int HP = 3000;
int g_selfAddr;
int g_self;
OnInit(int this)
{
g_selfAddr = this;
}
OnStart()
{
g_self = GetSelf(g_selfAddr);
ChangeBehavior(g_self, "run");
}
int trg = 0;
int timer = 0;
OnUpdate()
{
int now = GetGameTime();
if (GetHP(g_self)<=0)
{
trg = 0;
}
if (trg==0 && GetHP(g_self)==GetMaxHP(g_self))
{
Perform(g_self,"use",25);
Perform(g_self,"use",4);
trg = 1;
}
if (trg==1 && GetHP(g_self)<GetMaxHP(g_self)/2)
{
Perform(g_self,"use",23);
Perform(g_self,"use",34);
Perform(g_self,"use",8);
trg = 2;
}
if (trg==2 && GetHP(g_self)<=GetMaxHP(g_self)/3)
{
Perform(g_self,"use",24);
Perform(g_self,"use",19);
Perform(g_self,"use",8);
Perform(g_self,"use",16);
trg = 0;
}
}