XCOM 2

XCOM 2

Statistiken ansehen:
INT File - Operation Names
I wanted to change and/or add some operation names but I have a question. The INT file contains the variables "m_aFirstOpName" "m_aSecondOpName" "m_aFirstOpWord" and "m_aSecondOpWord". What is the difference between OpName and OpWord as far as how they are used in the game?
< >
Beiträge 12 von 2
Both sets of lists are used to create operation names. I don't recall what the difference is supposed to be between the two. I think they're only used together so you won't get m_aFirstOpName and m_aSecondOpWord together
static function string GenerateOpName(optional bool bTutorial = false) { local XGParamTag kTag; local int iSelection, iTop, iBottom; local bool bUseChicken; kTag = XGParamTag(`XEXPANDCONTEXT.FindTag("XGParam")); bUseChicken = Rand(500) == 0; // Choose which random op name generator to use if( Rand(2) == 0 ) { kTag.StrValue0 = default.m_aFirstOpName[Rand(default.m_aFirstOpName.Length)]; kTag.StrValue1 = default.m_aSecondOpName[Rand(default.m_aSecondOpName.Length)]; if( bUseChicken ) { kTag.StrValue1 = default.m_strChicken; } return `XEXPAND.ExpandString(default.m_strOpRandom); } else { iSelection = Rand(default.m_aFirstOpWord.Length); kTag.StrValue0 = default.m_aFirstOpWord[iSelection]; iSelection = Rand(default.m_aSecondOpWord.Length); kTag.StrValue1 = default.m_aSecondOpWord[iSelection]; if( bUseChicken ) { kTag.StrValue0 = default.m_strChicken; } // Make sure the first and second word of the operation name are not the same if(kTag.StrValue1 == kTag.StrValue0 ) { iTop = default.m_aSecondOpWord.Length - (iSelection+1); iBottom = iSelection; if( iTop >= iBottom ) { kTag.StrValue1 = default.m_aSecondOpWord[(iSelection+1) + Rand(iTop)]; } else { kTag.StrValue1 = default.m_aSecondOpWord[Rand(iBottom)]; } } return `XEXPAND.ExpandString(default.m_strOpRandomWord); } }

Apparently it just uses Rand(2) to randomly use either OpWord or OpName.
Zuletzt bearbeitet von mosspit; 6. Feb. um 7:36
< >
Beiträge 12 von 2
Pro Seite: 1530 50

Geschrieben am: 5. Feb. um 11:26
Beiträge: 2