WoR_PRC8/_module/nss/converse_tipsyin.nss

48 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
string sSayThis;
int iTalkVolume = TALKVOLUME_TALK;
int iRollTen = d10(1);
int iTalkFlag = 0;
void main()
{
if(d100(1) > 71) //Gives this script a 30% chance of completing
{ //Its execution. Call it my anti-spam code. (c:
if(iRollTen != 0) //Just in case a 0 slips in though I don't think
{ //It's possible.
switch(iRollTen) //Jump to the rolled statement number.
{
case 1:
sSayThis = "Another ale over here!";
break;
case 2:
sSayThis = "The ship leaves pretty soon.";
break;
case 3:
sSayThis = "Gegnar only takes experienced passengers on his ship.";
break;
case 4:
sSayThis = "Elidor? When does that ship leave?";
break;
case 5:
sSayThis = "I tried to get in but I forgot the wizard's name.";
break;
case 6:
sSayThis = "People have been reported missing around here. I wonder why?";
break;
case 7:
sSayThis = "Some say that the rats are so big, they carry dogs down with them.";
break;
case 8:
sSayThis = "I don't know. Some guy came in here smelling like he lives in the sewers.";
break;
case 9:
sSayThis = "Then I said...what are you going to do about it?";
break;
case 10:
sSayThis = "I'll bet you 20 gold I can.";
break;
} //End Switch Statement
SpeakString(sSayThis, iTalkVolume); //Make the NPC talk
} //End If Statement
} //End If Statement
} //End Main