#CW-Rep

1 messages ยท Page 1 of 1 (latest)

crimson ibex
#

I'm creating a Gym System using cw-rep as the stat / level process. However, I don't want to use DefaultLevels.

-- Gym Skills
    strength = {
        icon = 'fas fa-dumbbell',
        label = 'Strength',
        messages = {
            { notify = true, level = 10, message = "You're starting to feel stronger" },
            { notify = true, level = 25, message = "Your muscles are growing noticeably" },
            { notify = true, level = 50, message = "You're becoming quite strong" },
            { notify = true, level = 75, message = "You're now a powerhouse" },
            { notify = true, level = 100, message = "You've reached peak physical strength!" },
        },
        skillLevels = {
            { title = "Novice", from = 0, to = 5 },      -- 1 workout
            { title = "Beginner", from = 6, to = 10 },   -- 1 workout
            { title = "Amateur", from = 11, to = 15 },   -- 1 workout
            { title = "Intermediate", from = 16, to = 20 }, -- 1 workout
            { title = "Advanced", from = 21, to = 25 },  -- 1 workout
            { title = "Expert", from = 26, to = 50 },    -- 1.2-2 workouts
            { title = "Master", from = 51, to = 75 },    -- 2.2-4 workouts
            { title = "Elite", from = 76, to = 95 },     -- 4.2-5 workouts
            { title = "Legend", from = 96, to = 100 }    -- 5-10 workouts
        }
    },```


I want the thresholds to be in the variable of level 100 is max, but i want to balance out the experience gains so that it isn't just 1:1 leveling.  Any suggestions on how to get this to work ?
#
  • Levels 1-5: 1 workout per level
  • Levels 6-10: 1.2 workouts per level
  • Levels 11-15: 1.4 workouts per level
  • Levels 16-20: 1.6 workouts per level
  • Levels 21-25: 2 workouts per level
  • Levels 26-30: 2.2 workouts per level
  • Levels 31-35: 2.4 workouts per level
  • Levels 36-40: 2.6 workouts per level
  • Levels 41-45: 2.8 workouts per level
  • Levels 46-50: 3 workouts per level
  • Levels 51-55: 3.2 workouts per level
  • Levels 56-60: 3.4 workouts per level
  • Levels 61-65: 3.6 workouts per level
  • Levels 66-70: 3.8 workouts per level
  • Levels 71-75: 4 workouts per level
  • Levels 76-80: 4.2 workouts per level
  • Levels 81-85: 4.4 workouts per level
  • Levels 86-90: 4.6 workouts per level
  • Levels 91-95: 4.8 workouts per level
  • Levels 96-99: 5 workouts per level
  • Level 100: 10 workouts

this is basically the progression I want.

pastel crest
#

Hmm, not sure actually. Sounds like you gotta do some math here? haha

Maybe easiest is to grab the level in your training script and give more xp for lower levels?

Or increase level gaps

#

Not sure if it's really doable on a 0-100 tho

crimson ibex
#

Maybe.. My next task after this, is to use it to effect ox_inventory carry ๐Ÿ™‚

pastel crest
#

Rep deals with integers afaik

crimson ibex
#

hrmm so maybe i shouldn't be using cw-rep for this

#

I saw you used it in cw-crafting for leveling up, so i figured i could use it the same way

pastel crest
#

Yeah you should be able to use cw-rep in the same way

#

but you might need to rething how you set it up

#

compared to crafting

crimson ibex
#

Gotcha

pastel crest
#

Crafting gives XP based on the item crafted etc.

What you wanna do is either

  1. Give xp based on what level player is currently at (to make it go faster early on)
  2. have larger and larger gaps per level
#

So if you go with 2 you'd basically set it up like

            { title = "weak", from = 0, to = 5},
            { title = "strong", from = 5, to = 13 },
            { title = "stronger", from = 13, to = 20 },
etc
#

In my example is a tad bit different I guess, because it'd mean you gotta do 5 workouts per first level ๐Ÿค”

Rep has an annoying thing where level and xp is mixed lul due to it being meant to be backward compatible.

#

If you want 100 levels you'd have to define 100 of those, each with the span of XP you want the player to be at

#

so more like

            { title = "weak", from = 0, to = 1},
            { title = "weak 2", from = 1, to = 2},
            { title = "weak 3", from = 2, to = 3},
            { title = "weak 4", from = 3, to = 4},
crimson ibex
#

hrmm. Tryign to figure out the best way.. I still think re-using cw-rep for it would be the best.

#

but yeah.. i'll revisit w/ this info

#

๐Ÿ™‚

#

Thanks @pastel crest !!!

#

on the plus side, outside of the level range, it's working gorgeously ๐Ÿ˜‰

#

think i got it fixed.

pastel crest
#

๐Ÿ’ช

crimson ibex
# pastel crest ๐Ÿ’ช

320 sessions to hti 100 at my math.. then i'm going to have attrition, so if you don't workout at least once/wk it will start to decay

#

Still need to figure that part out ๐Ÿ˜‰

#

Proabbly oging to do an onLogin of character, and check the last workout timestamp I chuck into SetCharMetaData, and if it's > 7 days, remove 5 from the skill

crimson ibex
#

huh.. nvm.. it's still in SQL

#

That's it.. i'm restarting this script.. i've learned alot

#

lol

#

Trying to get the call from ox_inventory

#

;P

crimson ibex