Jump to content

[LE] MCM Menu How to Reference Race Data


Martneb

Recommended Posts

Here is What I could do until now:

Scriptname NMUVL_MCMScript extends SKI_ConfigBase

Race property DLC1VampireBeastRace auto
;Toggle Option Id
int IRace
;String
String[] OptionList
;Chosen Option
Int Choice = 0
event OnConfigInit()
Pages = New String[1]
Pages [0]= "Race Appearence"
EndEvent
;***************************************
;***************************************
Event OnInit()
parent.oninit()
OptionList = new String[11]
OptionList[0]= "Standard"
OptionList[1]= "Altmer"
OptionList[2]= "Argonian(Bugged)"
OptionList[3]= "Bosmer"
OptionList[4]= "Breton"
OptionList[5]= "Dunmer"
OptionList[6]= "Imperial"
OptionList[7]= "Khajiit(Bugged)"
OptionList[8]= "Nord"
OptionList[9]= "Orc"
OptionList[10]= "Redguard"
endevent
;***************************************
;***************************************
event OnPageReset(string page)
IF(Page == "")
LoadCustomContent("Lord Harkon")
else
UnloadCustomContent()
endif
;************************************
;************************************
if(Page == "Race Appearence")
SetCursorFillMode(Top_to_Bottom)
AddHeaderOption("Choose the Race your playing as:")
AddEmptyOption()
AddMenuOption("Choose Appearence",OptionList[Choice])
Endif
endEvent
Event OnOptionMenuOpen(int Option)
if(option == Irace)
SetMenuDialogOptions(OptionList)
SetMenuDialogStartIndex(Choice)
SetMenuDialogDefaultIndex(0)
endif
endevent
;*****************************
;*****************************
event optionmenuaccept (int option,int index)
if (Option == IRace)
Choice= Index
SetMenuoptionValue(IRace,OptionList[Choice])
if Choice == 0 ;DefaultRace
DLC1VampireBeastRace.Morph_Race = "DefaulRace"
Showmessage("Default Appearence",False,"Appearence kept")
endif
endif
The part i am struggeling now with is:
DLC1VampireBeastRace.Morph_Race = "DefaulRace"
I want this line to change the Race Morph, which can be found in the General Data tab of the race properties.
I just dont know how to access it per script.
My Goal is that with the Menu i can e.g. Change the Morph Race reference from "DefaultRace" to "NordRace"
I would be happy if anyone could show the Reference path to me.
Sincerly,
The Newbie Modder
Edited by Martneb
Link to comment
Share on other sites

  • Recently Browsing   0 members

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