People are playing my dungeon "the Wine Merchant's Basement" and like real users they're doing stuff you don't expect.
SpoilerShow
In the game you start with a single character but you get some help as the story progresses.
The players swap the position of players, causing my to mix up characters in script.
My script even crashes if they swap a character with an empty position.
Therefore my question: Is there some way to disable the players switching around?
Last edited by mahric on Sun Nov 18, 2012 10:31 pm, edited 1 time in total.
I don't think that can done, but I'm pretty sure you can make scripts that are more fool-proof so even if the player has switched you can check for it with things like checking the character names at first and then searching for the names, searching for nil, etc
There is a getOrdinal() method for the champion. The ordinal is guaranteed not to change whatever the player does to the champs:
Champion:getOrdinal()
Returns champion’s ordinal index between 1 and 4. The ordinal index is an unique identifier for the champion. It is guaranteed that the ordinal index never changes after character creation.
Wine basement specific spoiler below.
SpoilerShow
Also, I'm playing your mod.. with Toorum because I'm a dirty cheater mwahahah.
However, I'm stuck at the ogre where you stare the flame and die . If I ever get after that point I'll let you know how it behaves with Toorum as first character.
Xanathar wrote:There is a getOrdinal() method for the champion. The ordinal is guaranteed not to change whatever the player does to the champs:
Champion:getOrdinal()
Returns champion’s ordinal index between 1 and 4. The ordinal index is an unique identifier for the champion. It is guaranteed that the ordinal index never changes after character creation.
Wine basement specific spoiler below.
SpoilerShow
Also, I'm playing your mod.. with Toorum because I'm a dirty cheater mwahahah.
However, I'm stuck at the ogre where you stare the flame and die . If I ever get after that point I'll let you know how it behaves with Toorum as first character.