Difference between revisions of "User:PROXiCiDE/MathUtil"
Jump to navigation
Jump to search
m
→Bit Manipulation Example: Fixed Example due to rushing sorry
imported>PROXiCiDE m (→Bit Array: fixed example comment) |
imported>PROXiCiDE m (→Bit Manipulation Example: Fixed Example due to rushing sorry) |
||
Line 278: | Line 278: | ||
Function PerkUI_Init(Int[] aiPerkCTX, Bool abOrdered = True, Bool abPerkReset = True, String asActorValue = "", Int aiPerkMult = 20, Int aiPerkRankMult = 20, Bool abSkillReqOverride = False) | Function PerkUI_Init(Int[] aiPerkCTX, Bool abOrdered = True, Bool abPerkReset = True, String asActorValue = "", Int aiPerkMult = 20, Int aiPerkRankMult = 20, Bool abSkillReqOverride = False) | ||
If Bit_Get(aiPerkCTX[PerkCTX_Bits],PerkCTX_Bit_SkillOverrideInit) | If !Bit_Get(aiPerkCTX[PerkCTX_Bits],PerkCTX_Bit_SkillOverrideInit) | ||
_sSkillName = New String[18] | _sSkillName = New String[18] | ||
;Combat | ;Combat | ||
Line 301: | Line 301: | ||
_sSkillName[16] = "Sneak" | _sSkillName[16] = "Sneak" | ||
_sSkillName[17] = "Speechcraft" | _sSkillName[17] = "Speechcraft" | ||
Bit_SetBool(aiPerkCTX[PerkCTX_Bits],PerkCTX_Bit_SkillOverrideInit,True) | aiPerkCTX[PerkCTX_Bits] = Bit_SetBool(aiPerkCTX[PerkCTX_Bits],PerkCTX_Bit_SkillOverrideInit,True) | ||
EndIf | EndIf | ||
Bit_SetBool(aiPerkCTX[PerkCTX_Bits], PerkCTX_Bit_Ordered, abOrdered) | aiPerkCTX[PerkCTX_Bits] = Bit_SetBool(aiPerkCTX[PerkCTX_Bits], PerkCTX_Bit_Ordered, abOrdered) | ||
Bit_SetBool(aiPerkCTX[PerkCTX_Bits], PerkCTX_Bit_PerkReset, abPerkReset) | aiPerkCTX[PerkCTX_Bits] = Bit_SetBool(aiPerkCTX[PerkCTX_Bits], PerkCTX_Bit_PerkReset, abPerkReset) | ||
Bit_SetBool(aiPerkCTX[PerkCTX_Bits], PerkCTX_Bit_SkillOverride, abSkillReqOverride) | aiPerkCTX[PerkCTX_Bits] = Bit_SetBool(aiPerkCTX[PerkCTX_Bits], PerkCTX_Bit_SkillOverride, abSkillReqOverride) | ||
aiPerkCTX[PerkCTX_PerkMult] = | aiPerkCTX[PerkCTX_PerkMult] = MakeWord(aiPerkMult,aiPerkRankMult) | ||
aiPerkCTX[PerkCTX_PerkReserved] = 0 ; Reserved | aiPerkCTX[PerkCTX_PerkReserved] = 0 ; Reserved | ||
aiPerkCTX[PerkCTX_PerkSkillAttribute] = PerkUI_SetSkillNameToIndex(asActorValue) | aiPerkCTX[PerkCTX_PerkSkillAttribute] = PerkUI_SetSkillNameToIndex(asActorValue) |