Jump to content

Basic Script Probem


Recommended Posts

ScriptName MyScript

Begin 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

Endif

End

 

 

Or why not

 

 

ScriptName MyScript

Begin GameMode

If (GetGameLoaded)

SetRaceAlias ImperialA Imperial

SetRaceAlias ImperialB Imperial

SetRaceAlias NordA Nord

SetRaceAlias NordB Nord*

Endif

End

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.

 

You are right...

Maybe these lines are not necessary.

Link to comment
Share on other sites

ScriptName MyScript

Begin 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

Endif

End

 

 

Or why not

 

 

ScriptName MyScript

Begin GameMode

If (GetGameLoaded)

SetRaceAlias ImperialA Imperial

SetRaceAlias ImperialB Imperial

SetRaceAlias NordA Nord

SetRaceAlias NordB Nord*

Endif

End

 

Yeah, you simplified and improved the script, now it looks neat.

thank you.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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