Difference between revisions of "Talk:GetRace"
annoying... is there anyway to indent a codebox?
imported>DragoonWraith (example? I've never used the function so I'm not certain) |
imported>DragoonWraith (annoying... is there anyway to indent a codebox?) |
||
Line 12: | Line 12: | ||
:Sure. | :Sure. | ||
ref Race | |||
Begin GameMode | Begin GameMode | ||
if ( Race == 0 ) | |||
set Race to player.GetRace | |||
elseif ( Race == Imperial ) | |||
player.ModActorValue Personality 5 | |||
set Race to -1 | |||
endif | |||
End | End | ||
:The function returns the Race of the actor in a form that can be stored in ''ref'' variables, and then you can run checks on the ''ref''. I'm not certain if there are any functions that work with RACE type forms... | :The function returns the Race of the actor in a form that can be stored in ''ref'' variables, and then you can run checks on the ''ref''. I'm not certain if there are any functions that work with RACE type forms... | ||
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 10:30, 31 August 2008 (EDT) | :[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 10:30, 31 August 2008 (EDT) |