Grumpf_be Posted September 21, 2011 Share Posted September 21, 2011 ScriptName MyScriptBegin GameMode If (GetGameLoaded) let Initialize := 0 EndIf If (Initialize == 0) SetRaceAlias ImperialA Imperial SetRaceAlias ImperialB Imperial SetRaceAlias NordA Nord SetRaceAlias NordB Nord let Initialize := 1 EndifEnd Or why not ScriptName MyScriptBegin GameMode If (GetGameLoaded) SetRaceAlias ImperialA Imperial SetRaceAlias ImperialB Imperial SetRaceAlias NordA Nord SetRaceAlias NordB Nord* EndifEnd Link to comment Share on other sites More sharing options...
Deleted1848331User Posted September 22, 2011 Share Posted September 22, 2011 The script was already solved in post #2. Link to comment Share on other sites More sharing options...
Maskar Posted September 22, 2011 Share Posted September 22, 2011 The script was already solved in post #2. The script works, but is poorly written. Doubt pointing this out would be an issue. Link to comment Share on other sites More sharing options...
amnes Posted September 23, 2011 Author Share Posted September 23, 2011 Hi all, I want to separate male and female face texture by duplicating vanilla races and assign duplicated races to all NPCs. I manage to use SetRaceAlias command to make those duplicated races be recognized as vanilla races. Here is my script, is there anything wrong? ScriptName MyScriptBegin GameMode If (GetGameLoaded) let Initialize := 0 If (Initialize == 0) SetRaceAlias ImperialA Imperial SetRaceAlias ImperialB Imperial SetRaceAlias NordA Nord SetRaceAlias NordB Nord let Initialize := 1 Endif EndifEnd I fail to see why you bother setting initialize to 0 and right after check if it's 0. It will always be true. You are right...Maybe these lines are not necessary. Link to comment Share on other sites More sharing options...
amnes Posted September 23, 2011 Author Share Posted September 23, 2011 ScriptName MyScriptBegin GameMode If (GetGameLoaded) let Initialize := 0 EndIf If (Initialize == 0) SetRaceAlias ImperialA Imperial SetRaceAlias ImperialB Imperial SetRaceAlias NordA Nord SetRaceAlias NordB Nord let Initialize := 1 EndifEnd Or why not ScriptName MyScriptBegin GameMode If (GetGameLoaded) SetRaceAlias ImperialA Imperial SetRaceAlias ImperialB Imperial SetRaceAlias NordA Nord SetRaceAlias NordB Nord* EndifEnd Yeah, you simplified and improved the script, now it looks neat.thank you. Link to comment Share on other sites More sharing options...
Recommended Posts