Aller au contenu

Photo

Weird question about horses


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Alassirana

Alassirana
  • Members
  • 55 messages
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

#2
Baragg

Baragg
  • Members
  • 271 messages
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 .


#3
Xardex

Xardex
  • Members
  • 217 messages
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 .


#4
Alassirana

Alassirana
  • Members
  • 55 messages
That makes it easy, thanks very much.