Thread: [Essentials Script] Simple Level Modifier
View Single Post
  #4    
Old March 20th, 2011 (9:25 AM).
Luka S.J.'s Avatar
Luka S.J. Luka S.J. is offline
Jealous Croatian
     
    Join Date: Dec 2008
    Location: Croatia
    Age: 24
    Gender: Male
    Nature: Adamant
    Posts: 1,106
    Another thing would be random ranges for NPC wild battles and/or trainers
    Code:
    def pbLevelRange(min,max)
      difference=max-min
      level=rand(difference+1)
      level+=min
      return level
    end
    min would be the lowest possible level, and max would be the highest possible level that the Pokemon could reach. Where it falls between that line, is completely random.
    __________________

    Reply With Quote