Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Mats Berglinn on Thu 16/12/2004 11:15:56

Title: Changing name on characrters and hotspots
Post by: Mats Berglinn on Thu 16/12/2004 11:15:56
I feel pretty stupid for asking this question but how do you change name of characters, hotspots, objects and inventory?

For example I talk to a sailor and when I do I get to know that his name is Roger Saymore. When the conversation is over I want the name in the statusline to change from "sailor" to Roger Saymore.

I have checked the manual but can't find it.
Title: Re: Changing name on characrters and hotspots
Post by: SSH on Thu 16/12/2004 13:43:16
StrCopy(character[SAILOR].name, "Roger Saymore");

SetInvItemName(5, "cup of tea");

but I don't think you can for HS or Objects, but that may change in the 2.7 beta

(You had misspelled StrCopy. I also added some extra sample code to SetInvItemName. Hope you don't mind! (http://www.agsforums.com/yabb/Smileys/default/wink.gif))
Title: Re: Changing name on characrters and hotspots
Post by: TerranRich on Thu 16/12/2004 17:39:52
BFAQ'ed: http://bfaq.terran-x.com/#coding16