Jump to content

Recommended Posts

Posted (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 MyScript

Begin 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

Endif

End

Edited by amnes
Posted

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.

Posted (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 by amnes
Posted

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.

Posted (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 by amnes
Posted

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 MyScript

Begin 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

Endif

End

 

I fail to see why you bother setting initialize to 0 and right after check if it's 0. It will always be true.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...