Re-uploaded instead of migrated
Re-uploaded instead of migrated.
This commit is contained in:
35
_module/nss/southgate.nss
Normal file
35
_module/nss/southgate.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
Calculate the remaining hitpoints of south gate
|
||||
Created By: Dalantriel Jul 22, 2002
|
||||
*/
|
||||
|
||||
void main()
|
||||
{
|
||||
// Set the variables
|
||||
int nGatestrength = (GetCurrentHitPoints(GetObjectByTag("SouthGate")));
|
||||
|
||||
if(nGatestrength == 300)
|
||||
{
|
||||
SpeakString("Undamaged", TALKVOLUME_TALK);
|
||||
}
|
||||
if(nGatestrength < 300 && nGatestrength > 224)
|
||||
{
|
||||
SpeakString("Slightly Damaged", TALKVOLUME_TALK);
|
||||
}
|
||||
if(nGatestrength < 225 && nGatestrength > 149)
|
||||
{
|
||||
SpeakString("Moderately Damaged", TALKVOLUME_TALK);
|
||||
}
|
||||
if(nGatestrength < 150 && nGatestrength > 74)
|
||||
{
|
||||
SpeakString("Heavily Damaged", TALKVOLUME_TALK);
|
||||
}
|
||||
if(nGatestrength < 75 && nGatestrength > 0)
|
||||
{
|
||||
SpeakString("Critically Damaged", TALKVOLUME_TALK);
|
||||
}
|
||||
if(nGatestrength == 0)
|
||||
{
|
||||
SpeakString("Destroyed", TALKVOLUME_TALK);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user