This code works fine, but if you move the first character between the 4 slots, it takes the name of another character or a blank position (so it'll show up as New Character). How do you keep it consistent and keep the character's name even if you move it from slot to slot?Komag wrote:Post on-screen text with a character's name:
Code: Select all
local name1 = party:getChampion(1):getName() hudPrint("You know "..name1..", you are an incredibly effective adventurer!")
Retaining Character Name?
Retaining Character Name?
Re: Retaining Character Name?
Iterate through all 4 champions and use Champion:getOrdinal() until you find the one with ordinal number 1.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Retaining Character Name?
Thanks - but does this also allow me to do easter eggs based on names the player entered? Or is that even possible?minmay wrote:Iterate through all 4 champions and use Champion:getOrdinal() until you find the one with ordinal number 1.
Edit: NVM, I found a way.