BioWare Forums: View Post For Code Display


You are viewing a single post. Please do not take this post out of context.
Read the full topic: Post Working Scripts Here

Author Sticky: Post Working Scripts Here
Urthpaw Posted: Saturday, 22 June 04:05AM
Go AWAY!
This script makes a little white text-popup-thingy appear over the target, telling the PC to go away, and stop bothering it. (I made this after getting annoyed with making tons of little individual scripts that do this). It has 12 different messages, and it randomly selects one. It can easily be modified to have more.

To get it to work on your module create a conversation. The first "NPC's greeting" should be blank, and it should "perform action" of running this script.

NWScript:
void main()
{
  string sText;
  int nRandom = d12(1);
  if (nRandom == 1){
    sText = "Bugroff!";}
  else if (nRandom == 2){
    sText = "Stop bothering me.";}
  else if (nRandom == 3){
    sText = "Do go away!";}
  else if (nRandom == 4){
    sText = "I have no time for the likes of you!";}
  else if (nRandom == 5){
    sText = "Begone, scoundrel.";}
  else if (nRandom == 6){
    sText = "Off with you!";}
  else if (nRandom == 7){
    sText = "Please leave me.";}
  else if (nRandom == 8) {
    sText = "Thank you, and GOODBYE!";}
  else if (nRandom == 9){
    sText = "The door is over there.";}
  else if (nRandom == 10){
    sText = "Have you nothing better to do that bother me?";}
  else if (nRandom == 11){
    sText = "BAA! RAM! EWE!";}
  else if (nRandom == 12){
    sText = "Can you not see that I am occupied at the moment?";}
ActionSpeakString (sText, TALKVOLUME_TALK);
}


Obligatory WarCraft 2 reference

_________________
Don't try to write for money, write for large amounts of money.
-Terry Pratchett

This post taken from the BioWare Forums
Powered by BioBoards Version 2.05.006
Please read our Copyright and Trademark Information