Jump to content

Basic Script Probem


Recommended Posts

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
Link to comment
Share on other sites

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

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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