Difference between revisions of "AgeRace"

191 bytes added ,  02:13, 13 January 2011
no edit summary
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
imported>Ez0n3
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[AgeRace]] changes an actor to be an older or younger version of their current race.  
{{Function
|origin = GECK1
|summary = [[AgeRace]] changes an actor to be an older or younger version of their current race.  


In Fallout 3, this command is used only to set the player's age from adult to child before the vault tutorial quest and the Tranquility Lane quest, and back to adult again on completion of these quests.
In Fallout 3, this command is used only to set the player's age from adult to child before the vault tutorial quest and the Tranquility Lane quest, and back to adult again on completion of these quests.
Line 14: Line 16:


They also all have eg "AsianOldAged" versions, but the ~OldAged versions are not chained with the "older"/"younger" dropdowns, so are ignored by the AgeRace command.
They also all have eg "AsianOldAged" versions, but the ~OldAged versions are not chained with the "older"/"younger" dropdowns, so are ignored by the AgeRace command.
 
|name = AgeRace
=='''Syntax'''==
|returnType = void
  [ActorRef].AgeRace ''AgeValue''
  |referenceType = [ActorRefID]
 
|arguments =
=='''Examples'''==
  {{FunctionArgument
  JoeREF.AgeRace -2
  |Name = AgeValue
  |Type = int
  }}
  |example = JoeREF.AgeRace -2
Whatever the age of Joe, he will be changed to be the child version of his current race.
Whatever the age of Joe, he will be changed to be the child version of his current race.


Player.AgeRace 1
Player.AgeRace 1
If the player is currently a child, he will be changed to be the adult version of his current race. If the player is an adult, they will be changed to an old person. If the player is already old, they will be left unchanged.
If the player is currently a child, he will be changed to be the adult version of his current race. If the player is an adult, they will be changed to an old person. If the player is already old, they will be left unchanged.
}}


=='''Notes'''==
==Notes==
*Any character this is done to uses the default face textures for their new race.  
*Any character this is done to uses the default face textures for their new race.  
**If an NPC's chosen hair is now invalid for the changed race, the default hair is shown instead: however, once you change them back, their hair will be restored.
**If the player's chosen hair is now invalid for the changed race, the default hair is shown instead. If you change them back, their hair will be restored.
**For NPCs the same applies, but their hair will not be restored when changed back.
*Bethesda's code generally assumes you are playing as an adult. Specifically, completing the Tranquility Lane quest will turn you into an adult if you are a child, (since it uses agerace -1 at the start, then agerace 1 at the end), and the Broken Steel DLC ''will not start'' unless you are one of the adult human races.
*Bethesda's code generally assumes you are playing as an adult. Specifically, completing the Tranquility Lane quest will turn you into an adult if you are a child, (since it uses agerace -1 at the start, then agerace 1 at the end), and the Broken Steel DLC ''will not start'' unless you are one of the adult human races.
*If custom races are added in mods, there is no real way to test what "age group" the player is currently in, but "agerace -99" is prettymuch guaranteed to set them to the youngest possible value for their race, and "agerace 99" to the oldest.
*If custom races are added in mods, there is no real way to test what "age group" the player is currently in, but "agerace -99" is prettymuch guaranteed to set them to the youngest possible value for their race, and "agerace 99" to the oldest.
Line 33: Line 40:
*This function is new in the GECK, and was not available in the TES4 Construction Set.
*This function is new in the GECK, and was not available in the TES4 Construction Set.


=='''See Also'''==
==See Also==
*[[MatchRace]]
*[[MatchRace]]
*[[SetPCYoung]]
*[[SetPCYoung]]
Anonymous user