Topic: Story Mode Always Select the Story of First Character[SOLUTION]
My Brother StridrSpinel noticed that when useSameStoryForAllCharacters is off UFE always selects the Story of the fisrt Character on the list of characters and not the One Selected, so for a few hours dedicated to search for this error and found a solution and I share it to anyone who has this issue
On UFE.cs change
public static CharacterStory GetCharacterStory(CharacterInfo character){
if (!UFE.config.storyMode.useSameStoryForAllCharacters){
for (int i = 0; i < UFE.config.characters.Length; ++i){
int index = UFE.config.storyMode.selectableCharactersInStoryMode.IndexOf(i);
//CHANGE THIS IF
if (UFE.config.characters[i] != null && index >= 0){
//CHANGE THIS RETURN
return UFE.config.storyMode.characterStories[index];
}
}
}
return UFE.config.storyMode.defaultStory;
}
public static CharacterStory GetCharacterStory(CharacterInfo character){
if (!UFE.config.storyMode.useSameStoryForAllCharacters){
for (int i = 0; i < UFE.config.characters.Length; ++i){
int index = UFE.config.storyMode.selectableCharactersInStoryMode.IndexOf(i);
// NEW IF ADDS CHARACTER COMPARISON
if (UFE.config.characters != null && (UFE.config.characters[i].name+"(Clone)")==character.name && index >= 0){
// NEW RETURN SENDS THE CORRECT INDEX
return UFE.config.storyMode.characterStories[i];
}
}
}
return UFE.config.storyMode.defaultStory;
}
So now the correct storycharacter Story is selected, I hope It could hepfull no everyone