Aller au contenu

Photo

[Solved] Change creature name by script


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

#1
Apolyon6k

Apolyon6k
  • Members
  • 175 messages
I'm trying to change the name of a quest giver after he introduced himself to me.

The Player name i could change with SetName(oObject,string);
but the oObject of the Player I got with GetHero();

How do I get the oObject of my creature.
the creature is called "grarn01.utc" and the starting name is "Old Man".

In the second line of conversation he introduces himself and it would be strange to still refer to him as "Old Man", it also would be strange to start out knowing his name meaning set the creature name to "Grarn" from the beginning because at that point we don't know his name ingame...:?

Edit:
    object oGrarn = GetObjectByTag("grarn01");
    SetName(oGrarn,"Grarn");

solved it...:o

Sorry for clustering the forum, but i found nothing to begin with and then stumbled upon the solution by sheer luck...:blush::whistle:

Modifié par Apolyon6k, 16 décembre 2009 - 07:24 .