初级玩家

- 贡献度
- 0
- 金元
- 960
- 积分
- 96
- 精华
- 0
- 注册时间
- 2023-5-2
|
| StatValue = -300; StatType = 'HumanityAllocated'; PID = Game.GetPlayer():GetEntityID(); SS = Game.GetStatsSystem(); currValue = SS:GetStatValue(PID, StatType) print(" - Current [ "..StatType.. " ] value: "..string.format("%f", currValue)) if currValue == StatValue then print(" - "..StatType.." is already "..StatValue..", no need to edit. \n ") else statMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatType, 'Additive', StatValue); SS:RemoveAllModifiers(PID, StatType, true) SS:AddSavedModifier(PID, statMOD) print(" - [ "..StatType.." ] SETTED TO : "..string.format("%f", StatValue).." \n ") end |
|
|