《電馭叛客2077》控制台程式碼大全 (第4頁:升級) - 遊戲狂
廣告

《電馭叛客2077》控制台程式碼大全 (第4頁:升級)

請拿手機掃描此QRCODE

傳到手機看

2024-10-23

廣告

升級程式碼列表

裝備的武器

設定為1階 NewQuality = 0; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

廣告

設定為2階 NewQuality = 1; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

設定為3階 NewQuality = 2; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

設定為4階 NewQuality = 3; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

設定為5階 NewQuality = 4; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

設定為5++ NewQuality = 4; Area = "WeaEquipmentArea"; PlusPlusAdder = true; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

裝備的義體

設定為1階 NewQuality = 0; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ")

設定為2階 NewQuality = 1; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ")

設定為3階 NewQuality = 2; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ")

設定為4階 NewQuality = 3; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ")

設定為5階 NewQuality = 4; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ")

設定為5++ NewQuality = 4; Area = "CWEquipmentArea"; PlusPlusAdder = true; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ")

裝備的衣服

設定為1階 NewQuality = 0; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

設定為2階 NewQuality = 1; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

設定為3階 NewQuality = 2; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

設定為4階 NewQuality = 3; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

設定為5階 NewQuality = 4; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ")

強制卸下裝備武器的插件

1號位武器 WeaponSlot = 1; strPartIDs = {"ARSMGLMGMod1_", "ARSMGLMGMod2_", "ARSMGLMGMod3_", "BlaDemod1_", "BlaDemod2_", "BlaDemod3_", "BluntMod1_", "BluntMod2_", "BluntMod3_", "ChimeraMeleeMod", "ChimeraPowerMod", "ChimeraSmartMod", "ChimeraTechMod", "GenericMod1_", "HGMod1_", "HGMod2_", "HGMod3_", "MeleeMod1_", "MeleeMod2_", "MeleeMod3_", "PowerMod1_", "PowerMod2_", "PowerMod3_", "PRSRMod1_", "PRSRMod2_", "PRSRMod3_", "RangedMod1_", "RangedMod2_", "RangedMod3_", "ShotgunMod1_", "ShotgunMod2_", "ShotgunMod3_", "SmartMod1_", "SmartMod2_", "SmartMod3_", "TechMod1_", "TechMod2_", "TechMod3_", "ThrowMod1_", "ThrowMod2_", "ThrowMod3_", "w_att_scope_", "w_handgun_silencer", "w_muzzle_brake_", "w_silencer_0"}; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); MS = SSC:Get('ItemModificationSystem'); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; attachmentsFound = false; wasSlotEmpty = false; itID = PD:GetItemInEquipSlot2('Weapon', WeaponSlot - 1) if itID.id.hash ~= 0 then itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(itID.id..'.displayName'))); itData = TS:GetItemData(P, itID) print(' \n\t- WEAPON FOUND IN SLOT [ '..WeaponSlot..' ] -> '..itemName) if itData ~= nil then for _, part in ipairs(itData:GetItemParts()) do itPartID = part:GetItemID(part); itPartTDBID = TDBID.ToStringDEBUG(TweakDBID.new(itPartID.id)); itPartName = Game.GetLocalizedTextByKey(TDB.GetLocKey(itPartTDBID..'.displayName')); if itPartName == '' then itPartName = ''; end for k, str in next, strPartIDs do if string.find(itPartTDBID, str) then attachmentsFound = true; MS:RemoveItemPart(P, itID, part:GetSlotID(part), true) TS:RemoveItem(P, itPartID, 1) print('\t\t. . . REMOVING PART\t->\t'..itPartName..' ( "'..itPartTDBID..'" )') Game.AddToInventory(itPartTDBID, 1) end end end end else print(' \n\t- WEAPON IN SLOT [ '..WeaponSlot..' ] NOT FOUND. \n ') wasSlotEmpty = true; end if attachmentsFound == true and wasSlotEmpty == false then print(' \n\t- [ END ] ALL PARTS UNEQUIPPED. \n ') elseif wasSlotEmpty == false then print(' \n\t- [ END ] NO PARTS FOUND. \n ') end

2號位武器 WeaponSlot = 2; strPartIDs = {"ARSMGLMGMod1_", "ARSMGLMGMod2_", "ARSMGLMGMod3_", "BlaDemod1_", "BlaDemod2_", "BlaDemod3_", "BluntMod1_", "BluntMod2_", "BluntMod3_", "ChimeraMeleeMod", "ChimeraPowerMod", "ChimeraSmartMod", "ChimeraTechMod", "GenericMod1_", "HGMod1_", "HGMod2_", "HGMod3_", "MeleeMod1_", "MeleeMod2_", "MeleeMod3_", "PowerMod1_", "PowerMod2_", "PowerMod3_", "PRSRMod1_", "PRSRMod2_", "PRSRMod3_", "RangedMod1_", "RangedMod2_", "RangedMod3_", "ShotgunMod1_", "ShotgunMod2_", "ShotgunMod3_", "SmartMod1_", "SmartMod2_", "SmartMod3_", "TechMod1_", "TechMod2_", "TechMod3_", "ThrowMod1_", "ThrowMod2_", "ThrowMod3_", "w_att_scope_", "w_handgun_silencer", "w_muzzle_brake_", "w_silencer_0"}; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); MS = SSC:Get('ItemModificationSystem'); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; attachmentsFound = false; wasSlotEmpty = false; itID = PD:GetItemInEquipSlot2('Weapon', WeaponSlot - 1) if itID.id.hash ~= 0 then itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(itID.id..'.displayName'))); itData = TS:GetItemData(P, itID) print(' \n\t- WEAPON FOUND IN SLOT [ '..WeaponSlot..' ] -> '..itemName) if itData ~= nil then for _, part in ipairs(itData:GetItemParts()) do itPartID = part:GetItemID(part); itPartTDBID = TDBID.ToStringDEBUG(TweakDBID.new(itPartID.id)); itPartName = Game.GetLocalizedTextByKey(TDB.GetLocKey(itPartTDBID..'.displayName')); if itPartName == '' then itPartName = ''; end for k, str in next, strPartIDs do if string.find(itPartTDBID, str) then attachmentsFound = true; MS:RemoveItemPart(P, itID, part:GetSlotID(part), true) TS:RemoveItem(P, itPartID, 1) print('\t\t. . . REMOVING PART\t->\t'..itPartName..' ( "'..itPartTDBID..'" )') Game.AddToInventory(itPartTDBID, 1) end end end end else print(' \n\t- WEAPON IN SLOT [ '..WeaponSlot..' ] NOT FOUND. \n ') wasSlotEmpty = true; end if attachmentsFound == true and wasSlotEmpty == false then print(' \n\t- [ END ] ALL PARTS UNEQUIPPED. \n ') elseif wasSlotEmpty == false then print(' \n\t- [ END ] NO PARTS FOUND. \n ') end

3號位武器 WeaponSlot = 3; strPartIDs = {"ARSMGLMGMod1_", "ARSMGLMGMod2_", "ARSMGLMGMod3_", "BlaDemod1_", "BlaDemod2_", "BlaDemod3_", "BluntMod1_", "BluntMod2_", "BluntMod3_", "ChimeraMeleeMod", "ChimeraPowerMod", "ChimeraSmartMod", "ChimeraTechMod", "GenericMod1_", "HGMod1_", "HGMod2_", "HGMod3_", "MeleeMod1_", "MeleeMod2_", "MeleeMod3_", "PowerMod1_", "PowerMod2_", "PowerMod3_", "PRSRMod1_", "PRSRMod2_", "PRSRMod3_", "RangedMod1_", "RangedMod2_", "RangedMod3_", "ShotgunMod1_", "ShotgunMod2_", "ShotgunMod3_", "SmartMod1_", "SmartMod2_", "SmartMod3_", "TechMod1_", "TechMod2_", "TechMod3_", "ThrowMod1_", "ThrowMod2_", "ThrowMod3_", "w_att_scope_", "w_handgun_silencer", "w_muzzle_brake_", "w_silencer_0"}; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); MS = SSC:Get('ItemModificationSystem'); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; attachmentsFound = false; wasSlotEmpty = false; itID = PD:GetItemInEquipSlot2('Weapon', WeaponSlot - 1) if itID.id.hash ~= 0 then itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(itID.id..'.displayName'))); itData = TS:GetItemData(P, itID) print(' \n\t- WEAPON FOUND IN SLOT [ '..WeaponSlot..' ] -> '..itemName) if itData ~= nil then for _, part in ipairs(itData:GetItemParts()) do itPartID = part:GetItemID(part); itPartTDBID = TDBID.ToStringDEBUG(TweakDBID.new(itPartID.id)); itPartName = Game.GetLocalizedTextByKey(TDB.GetLocKey(itPartTDBID..'.displayName')); if itPartName == '' then itPartName = ''; end for k, str in next, strPartIDs do if string.find(itPartTDBID, str) then attachmentsFound = true; MS:RemoveItemPart(P, itID, part:GetSlotID(part), true) TS:RemoveItem(P, itPartID, 1) print('\t\t. . . REMOVING PART\t->\t'..itPartName..' ( "'..itPartTDBID..'" )') Game.AddToInventory(itPartTDBID, 1) end end end end else print(' \n\t- WEAPON IN SLOT [ '..WeaponSlot..' ] NOT FOUND. \n ') wasSlotEmpty = true; end if attachmentsFound == true and wasSlotEmpty == false then print(' \n\t- [ END ] ALL PARTS UNEQUIPPED. \n ') elseif wasSlotEmpty == false then print(' \n\t- [ END ] NO PARTS FOUND. \n ') end

裝備的衣服變為不朽

function setEquippedItemsToIconic() local Clothes, Weapons, Cyberware = true, false, false; print('\n ') local function setIconic(area, slot) local NewStatValue = 1; local curSlot = slot; local StatsModifiers = {'IsItemIconic'}; local cumulativeMode = false; local P = Game.GetPlayer(); local SSC = Game.GetScriptableSystemsContainer(); local TS = Game.GetTransactionSystem(); local SS = Game.GetStatsSystem(); local ES = SSC:Get(CName.new('EquipmentSystem')); local PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; local ID = PD:GetItemInEquipSlot2(area, curSlot); for i, StatName in next, StatsModifiers do if ID.tdbid.hash == 0 then print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t->\tSLOT EMPTY.') elseif ID.tdbid.hash ~= 0 then local itemData = TS:GetItemData(P, ID); local SOID = itemData:GetStatsObjectID(); local currVal = SS:GetStatValue(SOID, StatName); local itemID = TDBID.ToStringDEBUG(ID.id); local itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(ID.id..'.displayName'))); if cumulativeMode then newValue = currVal + NewStatValue; statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', newValue) else statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', NewStatValue) end SS:RemoveAllModifiers(SOID, StatName, true) SS:AddSavedModifier(SOID, statMod) print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t'..itemName..'\t( "'..itemID..'" )') end end end if Clothes then print('\t - - - - SETTING CLOTHES TO ICONIC :') for i, Area in next, {'Head', 'Face', 'InnerChest', 'OuterChest', 'Legs', 'Feet', 'Outfit'} do setIconic(Area, 0) end end if Weapons then print('\n ') print('\t - - - - SETTING WEAPONS TO ICONIC :') for i, Slot in next, {0, 1, 2} do setIconic('Weapon', Slot) end end if Cyberware then print('\n ') print('\t - - - - SETTING CYBERWARE TO ICONIC :') for i, cwArea in next, {'FrontalCortexCW', 'CardiovascularSystemCW', 'NervousSystemCW', 'IntegumentarySystemCW', 'MusculoskeletalSystemCW'} do for i, Slot in next, {0, 1, 2} do setIconic(cwArea, Slot) end end for i, Slot in next, {0, 1} do setIconic('HandsCW', Slot) end for i, cwArea in next, {'SystemReplacementCW', 'ArmsCW', 'EyesCW', 'LegsCW'} do setIconic(cwArea, 0) end end print(' \n\t - - - - [ END ] YOU MAY NEED TO SAVE AND RELOAD TO REFRESH THE INVENTORY.\n ') end setEquippedItemsToIconic()

裝備的武器變為不朽

function setEquippedItemsToIconic() local Clothes, Weapons, Cyberware = false, true, false; print('\n ') local function setIconic(area, slot) local NewStatValue = 1; local curSlot = slot; local StatsModifiers = {'IsItemIconic'}; local cumulativeMode = false; local P = Game.GetPlayer(); local SSC = Game.GetScriptableSystemsContainer(); local TS = Game.GetTransactionSystem(); local SS = Game.GetStatsSystem(); local ES = SSC:Get(CName.new('EquipmentSystem')); local PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; local ID = PD:GetItemInEquipSlot2(area, curSlot); for i, StatName in next, StatsModifiers do if ID.tdbid.hash == 0 then print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t->\tSLOT EMPTY.') elseif ID.tdbid.hash ~= 0 then local itemData = TS:GetItemData(P, ID); local SOID = itemData:GetStatsObjectID(); local currVal = SS:GetStatValue(SOID, StatName); local itemID = TDBID.ToStringDEBUG(ID.id); local itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(ID.id..'.displayName'))); if cumulativeMode then newValue = currVal + NewStatValue; statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', newValue) else statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', NewStatValue) end SS:RemoveAllModifiers(SOID, StatName, true) SS:AddSavedModifier(SOID, statMod) print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t'..itemName..'\t( "'..itemID..'" )') end end end if Clothes then print('\t - - - - SETTING CLOTHES TO ICONIC :') for i, Area in next, {'Head', 'Face', 'InnerChest', 'OuterChest', 'Legs', 'Feet', 'Outfit'} do setIconic(Area, 0) end end if Weapons then print('\n ') print('\t - - - - SETTING WEAPONS TO ICONIC :') for i, Slot in next, {0, 1, 2} do setIconic('Weapon', Slot) end end if Cyberware then print('\n ') print('\t - - - - SETTING CYBERWARE TO ICONIC :') for i, cwArea in next, {'FrontalCortexCW', 'CardiovascularSystemCW', 'NervousSystemCW', 'IntegumentarySystemCW', 'MusculoskeletalSystemCW'} do for i, Slot in next, {0, 1, 2} do setIconic(cwArea, Slot) end end for i, Slot in next, {0, 1} do setIconic('HandsCW', Slot) end for i, cwArea in next, {'SystemReplacementCW', 'ArmsCW', 'EyesCW', 'LegsCW'} do setIconic(cwArea, 0) end end print(' \n\t - - - - [ END ] YOU MAY NEED TO SAVE AND RELOAD TO REFRESH THE INVENTORY.\n ') end setEquippedItemsToIconic()

裝備的義體變為不朽

function setEquippedItemsToIconic() local Clothes, Weapons, Cyberware = false, false, true; print('\n ') local function setIconic(area, slot) local NewStatValue = 1; local curSlot = slot; local StatsModifiers = {'IsItemIconic'}; local cumulativeMode = false; local P = Game.GetPlayer(); local SSC = Game.GetScriptableSystemsContainer(); local TS = Game.GetTransactionSystem(); local SS = Game.GetStatsSystem(); local ES = SSC:Get(CName.new('EquipmentSystem')); local PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; local ID = PD:GetItemInEquipSlot2(area, curSlot); for i, StatName in next, StatsModifiers do if ID.tdbid.hash == 0 then print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t->\tSLOT EMPTY.') elseif ID.tdbid.hash ~= 0 then local itemData = TS:GetItemData(P, ID); local SOID = itemData:GetStatsObjectID(); local currVal = SS:GetStatValue(SOID, StatName); local itemID = TDBID.ToStringDEBUG(ID.id); local itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(ID.id..'.displayName'))); if cumulativeMode then newValue = currVal + NewStatValue; statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', newValue) else statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', NewStatValue) end SS:RemoveAllModifiers(SOID, StatName, true) SS:AddSavedModifier(SOID, statMod) print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t'..itemName..'\t( "'..itemID..'" )') end end end if Clothes then print('\t - - - - SETTING CLOTHES TO ICONIC :') for i, Area in next, {'Head', 'Face', 'InnerChest', 'OuterChest', 'Legs', 'Feet', 'Outfit'} do setIconic(Area, 0) end end if Weapons then print('\n ') print('\t - - - - SETTING WEAPONS TO ICONIC :') for i, Slot in next, {0, 1, 2} do setIconic('Weapon', Slot) end end if Cyberware then print('\n ') print('\t - - - - SETTING CYBERWARE TO ICONIC :') for i, cwArea in next, {'FrontalCortexCW', 'CardiovascularSystemCW', 'NervousSystemCW', 'IntegumentarySystemCW', 'MusculoskeletalSystemCW'} do for i, Slot in next, {0, 1, 2} do setIconic(cwArea, Slot) end end for i, Slot in next, {0, 1} do setIconic('HandsCW', Slot) end for i, cwArea in next, {'SystemReplacementCW', 'ArmsCW', 'EyesCW', 'LegsCW'} do setIconic(cwArea, 0) end end print(' \n\t - - - - [ END ] YOU MAY NEED TO SAVE AND RELOAD TO REFRESH THE INVENTORY.\n ') end setEquippedItemsToIconic()

背包中的所有插件

注意:背包中的所有物品修改後需存檔後讀檔才會刷新資料

背包中的所有插件

設定為1階 NewTier = 0; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為2階 NewTier = 1; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為3階 NewTier = 2; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為4階 NewTier = 3; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為5階 NewTier = 4; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為5++ NewTier = 4; targetType = "Mods"; PlusPlusAdder = true; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

背包中的所有武器

設定為1階 NewTier = 0; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為2階 NewTier = 1; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為3階 NewTier = 2; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為4階 NewTier = 3; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為5階 NewTier = 4; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為5++ NewTier = 4; targetType = "Weapons"; PlusPlusAdder = true; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

背包中的所有義體(包括裝備的)

設定為1階 NewTier = 0; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為2階 NewTier = 1; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為3階 NewTier = 2; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為4階 NewTier = 3; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為5階 NewTier = 4; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為5++ NewTier = 4; targetType = "Cyberware"; PlusPlusAdder = true; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

背包中的所有衣服

設定為1階 NewTier = 0; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為2階 NewTier = 1; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為3階 NewTier = 2; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為4階 NewTier = 3; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")

設定為5階 NewTier = 4; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ")


來源:遊俠網

廣告

廣告

遊戲資訊

電馭叛客2077 (Cyberpunk 2077)

類別: 動作
平台: PC, PS4, PS5, XboxONE, XboxSeriesX, Stadia
開發: CD Projekt RED
發行: CD Projekt RED
上市: 2020年12月10日

《電馭叛客2077》是一款由《巫師》系列開發商CD Projekt開發並於2020年12月10日發行的動作角色扮演遊戲。本作採用了桌上遊戲《電馭叛客2020》的世界觀與規則設計,背景為2077年美國加利福尼亞州的「賽博龐克」風格反烏托邦式城市「夜城」,玩家在這一開放世界中扮演名為「V」的僱傭兵。遊戲定位為一款成人RPG,故事設定在未來科技極度發達的腐敗世界中,構建在筆和紙系統的基礎上,兼有沙盤元素及RPG機制。本作由CD Projekt RED聯合《電馭叛客》筆紙系統(Cyberpunk Pen & Paper system)作者Mike Pondsmith共同開發。

更多 電馭叛客2077 攻略|新聞

廣告
升級程式碼列表 https://gamemad.com/guide/347926 裝備的武器 設定為1階 NewQuality = 0; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 設定為2階 NewQuality = 1; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 設定為3階 NewQuality = 2; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 設定為4階 NewQuality = 3; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 設定為5階 NewQuality = 4; Area = "WeaEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 設定為5++ NewQuality = 4; Area = "WeaEquipmentArea"; PlusPlusAdder = true; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 裝備的義體 設定為1階 NewQuality = 0; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ") 設定為2階 NewQuality = 1; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ") 設定為3階 NewQuality = 2; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ") 設定為4階 NewQuality = 3; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ") 設定為5階 NewQuality = 4; Area = "CWEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ") 設定為5++ NewQuality = 4; Area = "CWEquipmentArea"; PlusPlusAdder = true; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO SEE THE CHANGES \n ") 裝備的衣服 設定為1階 NewQuality = 0; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 設定為2階 NewQuality = 1; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 設定為3階 NewQuality = 2; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 設定為4階 NewQuality = 3; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 設定為5階 NewQuality = 4; Area = "CloEquipmentArea"; PlusPlusAdder = false; Slots = {}; Slots.ALLEquipmentArea = { Weapon = 3, Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1, FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; Slots.WeaEquipmentArea = { Weapon = 3 }; Slots.CloEquipmentArea = { Head = 1, Face = 1, InnerChest = 1, OuterChest = 1, Feet = 1, Legs = 1, Outfit = 1 }; Slots.CWEquipmentArea = { FrontalCortexCW = 3, EyesCW = 1, CardiovascularSystemCW = 3, ImmuneSystemCW = 2, NervousSystemCW = 2, IntegumentarySystemCW = 3, SystemReplacementCW = 1, MusculoskeletalSystemCW = 2, HandsCW = 2, ArmsCW = 2, LegsCW = 3, PersonalLink = 1, Splinter = 1, Gadget = 1, AbilityCW = 8 }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; for k,v in pairs(Slots[Area]) do for i=1,v do ID = PD:GetItemInEquipSlot2(k, i - 1); if ID.tdbid.hash ~= 0 then itemdata = TS:GetItemData(P, ID); SOID = itemdata:GetStatsObjectID(); end PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end if ID.tdbid.hash ~= 0 then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewQuality); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and ID.tdbid.hash ~= 0 then if Area ~= 'CloEquipmentArea' and ID.tdbid.hash ~= 0 then if itemdata:HasTag('Weapon') or itemdata:HasTag('Cyberware') then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if itemdata:HasTag('Weapon') then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end end elseif not PlusPlusAdder and ID.tdbid.hash ~= 0 then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end end print(" - NOTE: EXIT / RE-ENTER THE MENU TO SEE THE CHANGES \n ") 強制卸下裝備武器的插件 1號位武器 WeaponSlot = 1; strPartIDs = {"ARSMGLMGMod1_", "ARSMGLMGMod2_", "ARSMGLMGMod3_", "BlaDemod1_", "BlaDemod2_", "BlaDemod3_", "BluntMod1_", "BluntMod2_", "BluntMod3_", "ChimeraMeleeMod", "ChimeraPowerMod", "ChimeraSmartMod", "ChimeraTechMod", "GenericMod1_", "HGMod1_", "HGMod2_", "HGMod3_", "MeleeMod1_", "MeleeMod2_", "MeleeMod3_", "PowerMod1_", "PowerMod2_", "PowerMod3_", "PRSRMod1_", "PRSRMod2_", "PRSRMod3_", "RangedMod1_", "RangedMod2_", "RangedMod3_", "ShotgunMod1_", "ShotgunMod2_", "ShotgunMod3_", "SmartMod1_", "SmartMod2_", "SmartMod3_", "TechMod1_", "TechMod2_", "TechMod3_", "ThrowMod1_", "ThrowMod2_", "ThrowMod3_", "w_att_scope_", "w_handgun_silencer", "w_muzzle_brake_", "w_silencer_0"}; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); MS = SSC:Get('ItemModificationSystem'); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; attachmentsFound = false; wasSlotEmpty = false; itID = PD:GetItemInEquipSlot2('Weapon', WeaponSlot - 1) if itID.id.hash ~= 0 then itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(itID.id..'.displayName'))); itData = TS:GetItemData(P, itID) print(' \n\t- WEAPON FOUND IN SLOT [ '..WeaponSlot..' ] -> '..itemName) if itData ~= nil then for _, part in ipairs(itData:GetItemParts()) do itPartID = part:GetItemID(part); itPartTDBID = TDBID.ToStringDEBUG(TweakDBID.new(itPartID.id)); itPartName = Game.GetLocalizedTextByKey(TDB.GetLocKey(itPartTDBID..'.displayName')); if itPartName == '' then itPartName = ''; end for k, str in next, strPartIDs do if string.find(itPartTDBID, str) then attachmentsFound = true; MS:RemoveItemPart(P, itID, part:GetSlotID(part), true) TS:RemoveItem(P, itPartID, 1) print('\t\t. . . REMOVING PART\t->\t'..itPartName..' ( "'..itPartTDBID..'" )') Game.AddToInventory(itPartTDBID, 1) end end end end else print(' \n\t- WEAPON IN SLOT [ '..WeaponSlot..' ] NOT FOUND. \n ') wasSlotEmpty = true; end if attachmentsFound == true and wasSlotEmpty == false then print(' \n\t- [ END ] ALL PARTS UNEQUIPPED. \n ') elseif wasSlotEmpty == false then print(' \n\t- [ END ] NO PARTS FOUND. \n ') end 2號位武器 WeaponSlot = 2; strPartIDs = {"ARSMGLMGMod1_", "ARSMGLMGMod2_", "ARSMGLMGMod3_", "BlaDemod1_", "BlaDemod2_", "BlaDemod3_", "BluntMod1_", "BluntMod2_", "BluntMod3_", "ChimeraMeleeMod", "ChimeraPowerMod", "ChimeraSmartMod", "ChimeraTechMod", "GenericMod1_", "HGMod1_", "HGMod2_", "HGMod3_", "MeleeMod1_", "MeleeMod2_", "MeleeMod3_", "PowerMod1_", "PowerMod2_", "PowerMod3_", "PRSRMod1_", "PRSRMod2_", "PRSRMod3_", "RangedMod1_", "RangedMod2_", "RangedMod3_", "ShotgunMod1_", "ShotgunMod2_", "ShotgunMod3_", "SmartMod1_", "SmartMod2_", "SmartMod3_", "TechMod1_", "TechMod2_", "TechMod3_", "ThrowMod1_", "ThrowMod2_", "ThrowMod3_", "w_att_scope_", "w_handgun_silencer", "w_muzzle_brake_", "w_silencer_0"}; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); MS = SSC:Get('ItemModificationSystem'); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; attachmentsFound = false; wasSlotEmpty = false; itID = PD:GetItemInEquipSlot2('Weapon', WeaponSlot - 1) if itID.id.hash ~= 0 then itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(itID.id..'.displayName'))); itData = TS:GetItemData(P, itID) print(' \n\t- WEAPON FOUND IN SLOT [ '..WeaponSlot..' ] -> '..itemName) if itData ~= nil then for _, part in ipairs(itData:GetItemParts()) do itPartID = part:GetItemID(part); itPartTDBID = TDBID.ToStringDEBUG(TweakDBID.new(itPartID.id)); itPartName = Game.GetLocalizedTextByKey(TDB.GetLocKey(itPartTDBID..'.displayName')); if itPartName == '' then itPartName = ''; end for k, str in next, strPartIDs do if string.find(itPartTDBID, str) then attachmentsFound = true; MS:RemoveItemPart(P, itID, part:GetSlotID(part), true) TS:RemoveItem(P, itPartID, 1) print('\t\t. . . REMOVING PART\t->\t'..itPartName..' ( "'..itPartTDBID..'" )') Game.AddToInventory(itPartTDBID, 1) end end end end else print(' \n\t- WEAPON IN SLOT [ '..WeaponSlot..' ] NOT FOUND. \n ') wasSlotEmpty = true; end if attachmentsFound == true and wasSlotEmpty == false then print(' \n\t- [ END ] ALL PARTS UNEQUIPPED. \n ') elseif wasSlotEmpty == false then print(' \n\t- [ END ] NO PARTS FOUND. \n ') end 3號位武器 WeaponSlot = 3; strPartIDs = {"ARSMGLMGMod1_", "ARSMGLMGMod2_", "ARSMGLMGMod3_", "BlaDemod1_", "BlaDemod2_", "BlaDemod3_", "BluntMod1_", "BluntMod2_", "BluntMod3_", "ChimeraMeleeMod", "ChimeraPowerMod", "ChimeraSmartMod", "ChimeraTechMod", "GenericMod1_", "HGMod1_", "HGMod2_", "HGMod3_", "MeleeMod1_", "MeleeMod2_", "MeleeMod3_", "PowerMod1_", "PowerMod2_", "PowerMod3_", "PRSRMod1_", "PRSRMod2_", "PRSRMod3_", "RangedMod1_", "RangedMod2_", "RangedMod3_", "ShotgunMod1_", "ShotgunMod2_", "ShotgunMod3_", "SmartMod1_", "SmartMod2_", "SmartMod3_", "TechMod1_", "TechMod2_", "TechMod3_", "ThrowMod1_", "ThrowMod2_", "ThrowMod3_", "w_att_scope_", "w_handgun_silencer", "w_muzzle_brake_", "w_silencer_0"}; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); MS = SSC:Get('ItemModificationSystem'); PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; attachmentsFound = false; wasSlotEmpty = false; itID = PD:GetItemInEquipSlot2('Weapon', WeaponSlot - 1) if itID.id.hash ~= 0 then itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(itID.id..'.displayName'))); itData = TS:GetItemData(P, itID) print(' \n\t- WEAPON FOUND IN SLOT [ '..WeaponSlot..' ] -> '..itemName) if itData ~= nil then for _, part in ipairs(itData:GetItemParts()) do itPartID = part:GetItemID(part); itPartTDBID = TDBID.ToStringDEBUG(TweakDBID.new(itPartID.id)); itPartName = Game.GetLocalizedTextByKey(TDB.GetLocKey(itPartTDBID..'.displayName')); if itPartName == '' then itPartName = ''; end for k, str in next, strPartIDs do if string.find(itPartTDBID, str) then attachmentsFound = true; MS:RemoveItemPart(P, itID, part:GetSlotID(part), true) TS:RemoveItem(P, itPartID, 1) print('\t\t. . . REMOVING PART\t->\t'..itPartName..' ( "'..itPartTDBID..'" )') Game.AddToInventory(itPartTDBID, 1) end end end end else print(' \n\t- WEAPON IN SLOT [ '..WeaponSlot..' ] NOT FOUND. \n ') wasSlotEmpty = true; end if attachmentsFound == true and wasSlotEmpty == false then print(' \n\t- [ END ] ALL PARTS UNEQUIPPED. \n ') elseif wasSlotEmpty == false then print(' \n\t- [ END ] NO PARTS FOUND. \n ') end 裝備的衣服變為不朽 function setEquippedItemsToIconic() local Clothes, Weapons, Cyberware = true, false, false; print('\n ') local function setIconic(area, slot) local NewStatValue = 1; local curSlot = slot; local StatsModifiers = {'IsItemIconic'}; local cumulativeMode = false; local P = Game.GetPlayer(); local SSC = Game.GetScriptableSystemsContainer(); local TS = Game.GetTransactionSystem(); local SS = Game.GetStatsSystem(); local ES = SSC:Get(CName.new('EquipmentSystem')); local PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; local ID = PD:GetItemInEquipSlot2(area, curSlot); for i, StatName in next, StatsModifiers do if ID.tdbid.hash == 0 then print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t->\tSLOT EMPTY.') elseif ID.tdbid.hash ~= 0 then local itemData = TS:GetItemData(P, ID); local SOID = itemData:GetStatsObjectID(); local currVal = SS:GetStatValue(SOID, StatName); local itemID = TDBID.ToStringDEBUG(ID.id); local itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(ID.id..'.displayName'))); if cumulativeMode then newValue = currVal + NewStatValue; statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', newValue) else statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', NewStatValue) end SS:RemoveAllModifiers(SOID, StatName, true) SS:AddSavedModifier(SOID, statMod) print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t'..itemName..'\t( "'..itemID..'" )') end end end if Clothes then print('\t - - - - SETTING CLOTHES TO ICONIC :') for i, Area in next, {'Head', 'Face', 'InnerChest', 'OuterChest', 'Legs', 'Feet', 'Outfit'} do setIconic(Area, 0) end end if Weapons then print('\n ') print('\t - - - - SETTING WEAPONS TO ICONIC :') for i, Slot in next, {0, 1, 2} do setIconic('Weapon', Slot) end end if Cyberware then print('\n ') print('\t - - - - SETTING CYBERWARE TO ICONIC :') for i, cwArea in next, {'FrontalCortexCW', 'CardiovascularSystemCW', 'NervousSystemCW', 'IntegumentarySystemCW', 'MusculoskeletalSystemCW'} do for i, Slot in next, {0, 1, 2} do setIconic(cwArea, Slot) end end for i, Slot in next, {0, 1} do setIconic('HandsCW', Slot) end for i, cwArea in next, {'SystemReplacementCW', 'ArmsCW', 'EyesCW', 'LegsCW'} do setIconic(cwArea, 0) end end print(' \n\t - - - - [ END ] YOU MAY NEED TO SAVE AND RELOAD TO REFRESH THE INVENTORY.\n ') end setEquippedItemsToIconic() 裝備的武器變為不朽 function setEquippedItemsToIconic() local Clothes, Weapons, Cyberware = false, true, false; print('\n ') local function setIconic(area, slot) local NewStatValue = 1; local curSlot = slot; local StatsModifiers = {'IsItemIconic'}; local cumulativeMode = false; local P = Game.GetPlayer(); local SSC = Game.GetScriptableSystemsContainer(); local TS = Game.GetTransactionSystem(); local SS = Game.GetStatsSystem(); local ES = SSC:Get(CName.new('EquipmentSystem')); local PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; local ID = PD:GetItemInEquipSlot2(area, curSlot); for i, StatName in next, StatsModifiers do if ID.tdbid.hash == 0 then print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t->\tSLOT EMPTY.') elseif ID.tdbid.hash ~= 0 then local itemData = TS:GetItemData(P, ID); local SOID = itemData:GetStatsObjectID(); local currVal = SS:GetStatValue(SOID, StatName); local itemID = TDBID.ToStringDEBUG(ID.id); local itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(ID.id..'.displayName'))); if cumulativeMode then newValue = currVal + NewStatValue; statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', newValue) else statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', NewStatValue) end SS:RemoveAllModifiers(SOID, StatName, true) SS:AddSavedModifier(SOID, statMod) print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t'..itemName..'\t( "'..itemID..'" )') end end end if Clothes then print('\t - - - - SETTING CLOTHES TO ICONIC :') for i, Area in next, {'Head', 'Face', 'InnerChest', 'OuterChest', 'Legs', 'Feet', 'Outfit'} do setIconic(Area, 0) end end if Weapons then print('\n ') print('\t - - - - SETTING WEAPONS TO ICONIC :') for i, Slot in next, {0, 1, 2} do setIconic('Weapon', Slot) end end if Cyberware then print('\n ') print('\t - - - - SETTING CYBERWARE TO ICONIC :') for i, cwArea in next, {'FrontalCortexCW', 'CardiovascularSystemCW', 'NervousSystemCW', 'IntegumentarySystemCW', 'MusculoskeletalSystemCW'} do for i, Slot in next, {0, 1, 2} do setIconic(cwArea, Slot) end end for i, Slot in next, {0, 1} do setIconic('HandsCW', Slot) end for i, cwArea in next, {'SystemReplacementCW', 'ArmsCW', 'EyesCW', 'LegsCW'} do setIconic(cwArea, 0) end end print(' \n\t - - - - [ END ] YOU MAY NEED TO SAVE AND RELOAD TO REFRESH THE INVENTORY.\n ') end setEquippedItemsToIconic() 裝備的義體變為不朽 function setEquippedItemsToIconic() local Clothes, Weapons, Cyberware = false, false, true; print('\n ') local function setIconic(area, slot) local NewStatValue = 1; local curSlot = slot; local StatsModifiers = {'IsItemIconic'}; local cumulativeMode = false; local P = Game.GetPlayer(); local SSC = Game.GetScriptableSystemsContainer(); local TS = Game.GetTransactionSystem(); local SS = Game.GetStatsSystem(); local ES = SSC:Get(CName.new('EquipmentSystem')); local PD = ES:GetPlayerData(P); PD['GetItemInEquipSlot2'] = PD['GetItemInEquipSlot;gamedataEquipmentAreaInt32']; local ID = PD:GetItemInEquipSlot2(area, curSlot); for i, StatName in next, StatsModifiers do if ID.tdbid.hash == 0 then print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t->\tSLOT EMPTY.') elseif ID.tdbid.hash ~= 0 then local itemData = TS:GetItemData(P, ID); local SOID = itemData:GetStatsObjectID(); local currVal = SS:GetStatValue(SOID, StatName); local itemID = TDBID.ToStringDEBUG(ID.id); local itemName = Game.GetLocalizedTextByKey(TDB.GetLocKey(TDBID.ToStringDEBUG(ID.id..'.displayName'))); if cumulativeMode then newValue = currVal + NewStatValue; statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', newValue) else statMod = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatName, 'Additive', NewStatValue) end SS:RemoveAllModifiers(SOID, StatName, true) SS:AddSavedModifier(SOID, statMod) print('\t[ '..area..' - Slot '..(curSlot+1)..' ]\t'..itemName..'\t( "'..itemID..'" )') end end end if Clothes then print('\t - - - - SETTING CLOTHES TO ICONIC :') for i, Area in next, {'Head', 'Face', 'InnerChest', 'OuterChest', 'Legs', 'Feet', 'Outfit'} do setIconic(Area, 0) end end if Weapons then print('\n ') print('\t - - - - SETTING WEAPONS TO ICONIC :') for i, Slot in next, {0, 1, 2} do setIconic('Weapon', Slot) end end if Cyberware then print('\n ') print('\t - - - - SETTING CYBERWARE TO ICONIC :') for i, cwArea in next, {'FrontalCortexCW', 'CardiovascularSystemCW', 'NervousSystemCW', 'IntegumentarySystemCW', 'MusculoskeletalSystemCW'} do for i, Slot in next, {0, 1, 2} do setIconic(cwArea, Slot) end end for i, Slot in next, {0, 1} do setIconic('HandsCW', Slot) end for i, cwArea in next, {'SystemReplacementCW', 'ArmsCW', 'EyesCW', 'LegsCW'} do setIconic(cwArea, 0) end end print(' \n\t - - - - [ END ] YOU MAY NEED TO SAVE AND RELOAD TO REFRESH THE INVENTORY.\n ') end setEquippedItemsToIconic() 背包中的所有插件 注意:背包中的所有物品修改後需存檔後讀檔才會刷新資料 背包中的所有插件 設定為1階 NewTier = 0; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為2階 NewTier = 1; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為3階 NewTier = 2; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為4階 NewTier = 3; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為5階 NewTier = 4; targetType = "Mods"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為5++ NewTier = 4; targetType = "Mods"; PlusPlusAdder = true; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = 2; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 背包中的所有武器 設定為1階 NewTier = 0; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為2階 NewTier = 1; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為3階 NewTier = 2; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為4階 NewTier = 3; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為5階 NewTier = 4; targetType = "Weapons"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為5++ NewTier = 4; targetType = "Weapons"; PlusPlusAdder = true; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 2 then newDPSValue = nil; elseif ItemDPSVal >= 2 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 背包中的所有義體(包括裝備的) 設定為1階 NewTier = 0; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為2階 NewTier = 1; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為3階 NewTier = 2; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為4階 NewTier = 3; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為5階 NewTier = 4; targetType = "Cyberware"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為5++ NewTier = 4; targetType = "Cyberware"; PlusPlusAdder = true; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 背包中的所有衣服 設定為1階 NewTier = 0; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為2階 NewTier = 1; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為3階 NewTier = 2; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為4階 NewTier = 3; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 設定為5階 NewTier = 4; targetType = "Clothes"; PlusPlusAdder = false; itemType = {}; itemType.ALL = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true, Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true, Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; itemType.Mods = { Prt_AR_SMG_LMGMod = true, Prt_BlaDemod = true, Prt_BluntMod = true, Prt_BootsFabricEnhancer = true, Prt_Capacitor = true, Prt_FabricEnhancer = true, Prt_FaceFabricEnhancer = true, Prt_Fragment = true, Prt_HandgunMod = true, Prt_HandgunMuzzle = true, Prt_HeadFabricEnhancer = true, Prt_LongScope = true, Prt_Magazine = true, Prt_MeleeMod = true, Prt_Mod = true, Prt_Muzzle = true, Prt_OuterTorsoFabricEnhancer = true, Prt_PantsFabricEnhancer = true, Prt_PowerMod = true, Prt_PowerSniperScope = true,Prt_Precision_Sniper_RifleMod = true, Prt_Program = true, Prt_RangedMod = true, Prt_Receiver = true, Prt_RifleMuzzle = true, Prt_Scope = true, Prt_ScopeRail = true, Prt_ShortScope = true, Prt_ShotgunMod = true, Prt_SmartMod = true, Prt_Stock = true, Prt_TargetingSystem = true, Prt_TechMod = true, Prt_TechSniperScope = true, Prt_ThrowableMod = true, Prt_TorsoFabricEnhancer = true }; itemType.Weapons = { Wea_AssaultRifle = true, Wea_Axe = true, Wea_Chainsword = true, Wea_Fists = true, Wea_GrenadeLauncher = true, Wea_Hammer = true, Wea_Handgun = true, Wea_HeavyMachineGun = true, Wea_Katana = true, Wea_Knife = true, Wea_LightMachineGun = true, Wea_LongBlade = true, Wea_Machete = true, Wea_Melee = true, Wea_OneHandedClub = true, Wea_PrecisionRifle = true, Wea_Revolver = true, Wea_Rifle = true, Wea_ShortBlade = true, Wea_Shotgun = true, Wea_ShotgunDual = true, Wea_SniperRifle = true, Wea_SubmachineGun = true, Wea_Sword = true, Wea_TwoHandedClub = true }; itemType.Clothes = { Clo_Face = true, Clo_Feet = true, Clo_Head = true, Clo_InnerChest = true, Clo_Legs = true, Clo_OuterChest = true, Clo_Outfit = true }; itemType.Cyberware = { Prt_Program = true, Cyb_Launcher = true, Cyb_MantisBlades = true, Cyb_NanoWires = true, Cyb_StrongArms = true, Cyb_Ability = true, Cyberware = true }; P = Game.GetPlayer(); SSC = Game.GetScriptableSystemsContainer(); TS = Game.GetTransactionSystem(); CS = SSC:Get(CName.new('CraftingSystem')); SS = Game.GetStatsSystem(); ES = SSC:Get(CName.new('EquipmentSystem')); PlaLev = SS:GetStatValue(P:GetEntityID(), 'PowerLevel'); ItemLev = SS:GetStatValue(SOID, 'ItemLevel'); ItemPowLev = SS:GetStatValue(SOID, 'PowerLevel'); ItemPlusVal = SS:GetStatValue(SOID, 'IsItemPlus'); ItemDPSVal = SS:GetStatValue(SOID, 'ItemPlusDPS'); INV = {TS:GetItemList(P)}; for i, v in ipairs(INV[2]) do iID = v:GetID(); itemdata = TS:GetItemData(P, v:GetID()); SOID = itemdata:GetStatsObjectID(); IDT = itemdata:GetItemType().value; vType = Game['gameRPGManager::GetItemType;ItemID'](iID); newTargetType = itemType[targetType]; if ItemLev < PlaLev * 10 then levMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemLevel', 'Additive', PlaLev * 10); powMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('PowerLevel', 'Additive', PlaLev); if newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'ItemLevel', true) SS:RemoveAllModifiers(SOID, 'PowerLevel', true) SS:AddSavedModifier(SOID, levMOD) SS:AddSavedModifier(SOID, powMOD) end end if newTargetType[IDT] then quaMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('Quality', 'Additive', NewTier); SS:RemoveAllModifiers(SOID, 'Quality', true) SS:AddSavedModifier(SOID, quaMOD) end if PlusPlusAdder and newTargetType[IDT] then if string.find(IDT, "Wea_") or string.find(IDT, "Prt_") or string.find(IDT, "Cyb") and not string.find(IDT, "Fists") then if ItemPlusVal < 2 then newPlusValue = 2; elseif ItemPlusVal >= 2 then newPlusValue = nil; end if newPlusValue then pMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('IsItemPlus', 'Additive', newPlusValue); SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) SS:AddSavedModifier(SOID, pMOD) end if string.find(IDT, "Wea_") then if ItemDPSVal < 0.3 then newDPSValue = 0.3; elseif ItemDPSVal >= 0.3 then newDPSValue = nil; end if newDPSValue then dpsMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat']('ItemPlusDPS', 'Additive', newDPSValue); SS:RemoveAllModifiers(SOID, 'ItemPlusDPS', true) SS:AddSavedModifier(SOID, dpsMOD) end end end elseif not PlusPlusAdder and newTargetType[IDT] then SS:RemoveAllModifiers(SOID, 'IsItemPlus', true) end end print(" - NOTE: SAVE [ F5 ] AND RELOAD [ F9 ] TO FULLY REFRESH THE BACKPACK \n ") 來源:遊俠網
https://gamemad.com/guide/347926
0