amnes Posted September 20, 2011 Share Posted September 20, 2011 (edited) 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 Edited September 20, 2011 by amnes Link to comment Share on other sites More sharing options...
AlexxEG Posted September 20, 2011 Share Posted September 20, 2011 ScriptName MyScript short Initialize Begin GameMode If (GetGameLoaded) set Initialize to 0 If (Initialize == 0) SetRaceAlias ImperialA Imperial SetRaceAlias ImperialB Imperial SetRaceAlias NordA Nord SetRaceAlias NordB Nord set Initialize to 1 Endif Endif End Try this. Link to comment Share on other sites More sharing options...
Grumpf_be Posted September 20, 2011 Share Posted September 20, 2011 I don't see anything wrong. What didn't work? Link to comment Share on other sites More sharing options...
amnes Posted September 20, 2011 Author Share Posted September 20, 2011 (edited) ScriptName MyScript short Initialize Begin GameMode If (GetGameLoaded) set Initialize to 0 If (Initialize == 0) SetRaceAlias ImperialA Imperial SetRaceAlias ImperialB Imperial SetRaceAlias NordA Nord SetRaceAlias NordB Nord set Initialize to 1 Endif Endif End Try this. Thanks for reply.I added the script by CS with OBSE_LOADER, then saved the plugin; but it seems not work properly.When I play a new game with a duplicated race which is an Imperial alias, the DarkElf in the sewer can't recognize my character as an Imperial.What can be wrong? Edited September 20, 2011 by amnes Link to comment Share on other sites More sharing options...
AlexxEG Posted September 20, 2011 Share Posted September 20, 2011 What have you attached the script to? Link to comment Share on other sites More sharing options...
amnes Posted September 20, 2011 Author Share Posted September 20, 2011 What have you attached the script to? The script type is quest, and I didn't attach it to anything... What do I need to do? Sorry, I am a layman of script. Link to comment Share on other sites More sharing options...
AlexxEG Posted September 20, 2011 Share Posted September 20, 2011 Make a new quest and check the option to start at game start/loaded. Then attach the script to that quest. Link to comment Share on other sites More sharing options...
amnes Posted September 20, 2011 Author Share Posted September 20, 2011 (edited) Make a new quest and check the option to start at game start/loaded. Then attach the script to that quest. Yes! I did the trick finally!Thanks very much, you are really kind and generous. :thumbsup: May I ask one more question?Now I manage to set all NPCs as duplicated races.Is there any way or tool to process the batch work? Edited September 20, 2011 by amnes Link to comment Share on other sites More sharing options...
AlexxEG Posted September 20, 2011 Share Posted September 20, 2011 (Sorry I disappeared, got really really sick.)No problem, glad I could help. I never worked with batch. I'm sorry. Link to comment Share on other sites More sharing options...
Maskar Posted September 20, 2011 Share Posted September 20, 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. Link to comment Share on other sites More sharing options...
Recommended Posts