Quote:
|
Originally Posted by Polo
Well, if your numbers have some form of pattern, then yes its possible.
You could also have all the ammounts stored in an array and then just look through it using thier current level as the index.
NPC Code:
//Example Only.
ExperienceAmmounts = {0,100,300,600,1000}; //Etc...
if (Experience > ExperienceAmmounts[Level]) {
...
}
If the scripts are wrong well meh its late. They're just examples anyway.
|
Yeah, I think you got the gist of what I was trying to show with my example.
I was going to store them in an array, but I've never really toyed with them before. you'd get them like this, right?
experienceammounts = {0,100,300,600};
if (experience >= #I(experienceammounts,2)){
blah
}
right? I've never used string arrays before, if that's what I would use.