esb
Because none of us are as cruel as all of us.
- Reaction score
- 329
So I'm making a rank system for non-hero units. It's MPI
Basically I have set the rank names, "exp required" to gain rank, and rank levels.
I have
Exp_CurrentPoints is the "Experience" of the unit. Which is gained for every kill. It gains experience fine.
Exp_TotalNeeded are the exp per level needed.
For example,
Exp_CurrentRankLvl is the Level of the unit.
The unit (In the map) is "caught/converted/whatever you want to call it".
When it's caught, it is automatically set to Lvl 1.
My problem is Exp_TotalNeeded[Exp_CurrentRankLvl[(Player number of etc.)]. It's an array within an array.
I am hoping that it's TotalNeeded[AtLevelOne[(Player 1)]].
It seems that it's TotalNeeded[1[1]] = 0 (By default?)
So, In short, If I set Array[1] = 100
Does that also mean Array [1[1]] = 100? Or would I have to manually set it to 100?
Basically I have set the rank names, "exp required" to gain rank, and rank levels.
I have
Trigger:
- Exp_CurrentPoints[(Player number of (Owner of (Killing unit)))] Greater than or equal to Exp_TotalNeeded[Exp_CurrentRankLvl[(Player number of (Owner of (Killing unit)))]]
Exp_CurrentPoints is the "Experience" of the unit. Which is gained for every kill. It gains experience fine.
Exp_TotalNeeded are the exp per level needed.
For example,
Trigger:
- Set Exp_TotalNeeded[0] = 0
- Set Exp_TotalNeeded[1] = 200
- Set Exp_TotalNeeded[2] = 500
Exp_CurrentRankLvl is the Level of the unit.
The unit (In the map) is "caught/converted/whatever you want to call it".
When it's caught, it is automatically set to Lvl 1.
My problem is Exp_TotalNeeded[Exp_CurrentRankLvl[(Player number of etc.)]. It's an array within an array.
I am hoping that it's TotalNeeded[AtLevelOne[(Player 1)]].
It seems that it's TotalNeeded[1[1]] = 0 (By default?)
So, In short, If I set Array[1] = 100
Does that also mean Array [1[1]] = 100? Or would I have to manually set it to 100?