Jump to content


Changing the name of a character


  • Please log in to reply
6 replies to this topic

#1 -Moonfruit-

-Moonfruit-
  • Guest

Posted 28 June 2003 - 10:38 PM

I was wondering if it is possible to change a character's displayed name (not death variable) by means of a dialogue? I've tried like this.

IF ~~ THEN BEGIN change1
SAY ~What must I do?~
IF ~Name("David","b#char")~ THEN REPLY ~Change your name~ GOTO change2
END

IF ~~ THEN BEGIN change2
SAY ~OK~
IF ~~ THEN DO ~ChangeName("Michael")~ EXIT
END

When I do it like this then I don't even get the option to make the "Change your name" reply. I've looked through NI, and Name and ChangeName are the only trigger and action I could find that seem appropriate.

Can anyone help?

Thanx

#2 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 29 June 2003 - 12:26 AM

Try doing it via a script triggered spell.

The great wolf Fenrir gapes ever at the dwelling of the gods.


#3 -Sim-

-Sim-
  • Guest

Posted 29 June 2003 - 02:15 AM

Name and ChangeName refer to death variable, not displayed name. CharName trigger refers to displayed name, but I'm not aware of any corresponding action.

#4 -Moonfruit-

-Moonfruit-
  • Guest

Posted 29 June 2003 - 04:04 AM

Try doing it via a script triggered spell.

Thanx. This solved the problem.

Is is possible to also change a character's biography in this way? I looked, but couldn't find a command for it.

#5 -Sim-

-Sim-
  • Guest

Posted 29 June 2003 - 04:34 AM

A character biography can be changed via script, using SetPlayerSound(O:Object*,I:STRREF*,BIOGRAPHY).

#6 -Moonfruit-

-Moonfruit-
  • Guest

Posted 29 June 2003 - 05:42 AM

A character biography can be changed via script, using SetPlayerSound(O:Object*,I:STRREF*,BIOGRAPHY).

When I try this I get an error upon compilation:

BIOGRAPHY not found in [SNDSLOT.IDS]

I checked through all the ids files, but couldn't find anything for biography.

#7 -Moonfruit-

-Moonfruit-
  • Guest

Posted 29 June 2003 - 05:55 AM

Never mind, I found the problem.

Seems that the game reads the BIOGRAPHY field as EXISTANCE5. :huh: