• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Interger Xp Table

Status
Not open for further replies.
Level 9
Joined
Aug 1, 2008
Messages
453
OK, I was going to try to create skills that EXP is based on integers, and i was wondering if there was anyway of making some kind of EXP table like Lvl 1 = 1-10xp, Lvl 2 = 11-30xp, etc. So if some has 15 exp it will display it as something like Lvl 2 15xp/30xp

EDIT: i want it so when a player says like -smithing it convert the integer value into like text form. So 1 integer would be 15, and it would show Lvl 2 15xp/30xp
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
i think 20 exp should be to low..but anyway

go game contains > hero exp range set it to 0
(you have to disable it so you don´t get to much exp)


>unit dies
>>dying unit is a hero
>>level of dying unit equal to (your level)
hero - add random number between 10 and 30 experience to (killing unit)
 
Level 9
Joined
Aug 1, 2008
Messages
453
this isn't for a hero, its for a skill that XP is based on intergers. I want a player to be able to type somthing like -Smith Level, and it will covernt the interger into a level. Like i said above. So 15 xp would be turned into Lvl 2 15xp/30xp
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
do you want him to get more exp than usually or you want to give him a lvl?

maybe...

player types -Smith Level

if you want 15 to turn in 2

set level of (your unit) to level of (your unit) + experience of (your unit) / 7



you want that if your hero has 15 exp you give him 2 lvl?
 
Level 8
Joined
Dec 8, 2007
Messages
312
... The xp has nothing to do with a unit/hero. Im trying to make it so if a player wants to check what level their skill is, it will convent the integer data into a level and xp left.

so you have only one variable = integer that stands for current exp of a skill? and there is no integer that stands of level of skill, right?
and what is your leveling formula? give at least 4 level examples.

if you answer this I should be able to help you.
 
Level 9
Joined
Aug 1, 2008
Messages
453
So level one EXP is 2,6,12,20,30,42,56,etc i can provide more if you want.

I have all the level EXP's set to a variable, and the players current EXP set to another variable.

And i want it so when a player types something like -Smithing, it converts the players EXP into text that will show they're level. Somthing like if the player has 32 xp it will show:
Current level: 5 32/42 experience.
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
is this maybe what you want?

if conditions
player has 32 exp
than
game text to player group-triggering player: Current level: < 5 > (CORRECT_EXP [Player number of (Triggering Player)]) + (EXP [Player number of (Triggering Player)])


from where did you get that lvl 5 ?,why is it lvl 5?
 
Level 8
Joined
Dec 8, 2007
Messages
312
it's easy.
  • exp
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to <what level is max>, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • EXP Less than LEVEL_EXP_VAR[(Integer A)]
            • Then - Actions
              • Game - Display to (All players) for 30.00 seconds the text: ((level + (String((Integer A)))) + (((String(EXP)) + /) + ((String(LEVEL_EXP_VAR[((Integer A) + 1)])) + exp)))
              • Skip remaining actions
            • Else - Actions
 
Status
Not open for further replies.
Top