Author Topic: Weird question about horses  (Read 321 times)

Legacy_Alassirana

  • Full Member
  • ***
  • Posts: 103
  • Karma: +0/-0
Weird question about horses
« on: August 16, 2011, 02:05:29 pm »


               Well, I've looked through the builder's guide to horses and creature scaling, and realized that I really do not want horses available.  This, however, includes paladin mounts.  While the tutorial thing mentions that you could change the summon mount script, I don't know how to do that.  I've looked at the script in question and found it to be rather crazy.  Is there an easy way to disable the paladin mount?  Thanks in advance for your help.

Alassirana
               
               

               
            

Legacy_Baragg

  • Sr. Member
  • ****
  • Posts: 496
  • Karma: +0/-0
Weird question about horses
« Reply #1 on: August 16, 2011, 03:20:48 pm »


               I believe you could just add a return at the beginning of the script then save it as is and that should disable the script.

IE:

void main()
{
    return;

 // the normal script stuff would be below here
}

You may want to send some feedback to allow the player to know the script is dead. Such as:

void main()
{
    SendMessageToPC("You mount can not be summoned.", GetPcSomeHow); // not sure that is the right syntax
    return;

   // normal script stuff below here

}
               
               

               


                     Modifié par Baragg, 16 août 2011 - 02:23 .
                     
                  


            

Legacy_Xardex

  • Sr. Member
  • ****
  • Posts: 414
  • Karma: +0/-0
Weird question about horses
« Reply #2 on: August 16, 2011, 03:31:11 pm »


               void main()
{
/*
. . .
*/
}

The /* and */ will "comment out" everything between them. Commented text is ignored when the script is ran ingame. You want to comment out everything between void main's { }. The text will turn green. Save the script. It will tell you if the script does not compile. (if there is a problem)


Other way, if you don't want to preserve the script, would be to simply delete everything between { }.

void main()
{

}


Name of this topic is naughty... ':bandit:'
               
               

               


                     Modifié par Xardex, 16 août 2011 - 02:37 .
                     
                  


            

Legacy_Alassirana

  • Full Member
  • ***
  • Posts: 103
  • Karma: +0/-0
Weird question about horses
« Reply #3 on: August 16, 2011, 03:37:54 pm »


               That makes it easy, thanks very much.