29 lines
859 B
Plaintext
29 lines
859 B
Plaintext
string sSayThis;
|
|
int iTalkVolume = TALKVOLUME_TALK;
|
|
int iTalkFlag = 0;
|
|
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
|
|
{
|
|
if (GetTag(oPC) == "ICE_WYRM") {
|
|
// Do Nothing
|
|
}
|
|
else {
|
|
AssignCommand(oPC, ClearAllActions(TRUE));
|
|
sSayThis = "I slipped off the edge of the cliff. Its a good thing I could swim to shore.";
|
|
DelayCommand(5.0, AssignCommand(oPC, ActionSpeakString(sSayThis, iTalkVolume)));
|
|
{int nRandom = d4(1);
|
|
if (nRandom == 1){
|
|
AssignCommand(oPC, JumpToObject(GetWaypointByTag("ICE_SWIM1")));}
|
|
else if (nRandom == 2){
|
|
AssignCommand(oPC, JumpToObject(GetWaypointByTag("ICE_SWIM1")));}
|
|
else if (nRandom == 3){
|
|
AssignCommand(oPC, JumpToObject(GetWaypointByTag("ICE_SWIM2")));}
|
|
else if (nRandom == 4){
|
|
AssignCommand(oPC, JumpToObject(GetWaypointByTag("ICE_SWIM2")));}
|
|
}
|
|
}
|
|
}
|
|
}
|