blob: d9cf0585b4cecc0073213a3934429e3f1f55dff6 (
plain) (
tree)
|
|
// TMW2 scripts.
// Authors:
// Jesusalva
// Description:
// Sagratha
// SaggyScoreUpdate( amount )
function script SaggyScoreUpdate {
.@val=getarg(0);
SAGRATHA_SCORE=max(-50, min(50, SAGRATHA_SCORE+.@val));
return;
}
function script SaggyMobCount {
switch (killedrid) {
// She gets angry
case Mouboo:
case AlphaMouboo:
SaggyScoreUpdate(-5);
break;
case Pollet:
case Fluffy:
case IcedFluffy:
SaggyScoreUpdate(-3);
break;
case Squirrel:
case SpringSquirrel:
case LofSquirrel:
case FrozenSquirrel:
case FairysSquirrel:
case Pinkie:
SaggyScoreUpdate(-2);
break;
// She gets happy
case ViciousSquirrel:
case WickedMushroom:
case Bluepar:
SaggyScoreUpdate(1);
break;
}
return;
}
014-5-1,33,37,0 script Sagratha NPC_SAGRATHA,{
goodbye; end;
OnInit:
.distance=5;
npcsit;
end;
OnInstanceInit:
disablenpc instance_npcname(.name$);
end;
}
|