Problems with unlimited levels by Blizzard

Started by firevenge007, September 20, 2013, 01:09:54 am

Previous topic - Next topic

firevenge007

So recently, I was roaming around these forums, and I saw a pretty nice script made by Blizzard where it was possible to bypass the level 99 cap.

It works perfectly and I am in love with it and the maker, but I've been wondering how I could add on level requirements for skills above level 99.

In the database, one is not allowed to make a skill require a higher level than 99, but in the script, it doesn't seem to support skill requirements.

Is there is something I am missing?

Thank you very much.

Edit: Here is the link to the thread I am referring to: http://forum.chaos-project.com/index.php/topic,5563.0.html

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

firevenge007

Does that take a lot of work? I wouldn't want to bother you if it takes up a large portion of your time.

G_G

In the mean time, you could try this. Should work, haven't tested it, lemme know if it does/doesn't.

Code: ruby
=begin
LEARNINGS = {
 CLASS_ID => [
   [skill_id, level_requirement],
   [skill_id, level_requirement],
 ],
}
=end
LEARNINGS = {
  # Fighter
 1 => [
   [57, 135],
 ],
  # Lancer
 2 => [
   [60, 117],
   [61, 123],
 ],
}
module RPG
 class Class
   def learnings
     class_learns = LEARNINGS[@id] == nil ? [] : LEARNINGS[@id]
     learnings = @learnings.clone
     class_learns.each { |array|
       learning = Learning.new
       learning.level = array[1]
       learning.skill_id = array[0]
       learnings.push(learning)
     }
     return learnings
   end
 end
end


Blizzard

Actually gameus basically already implemented it, lol! I was just thinking that it might be really something that should be part of the original script.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

firevenge007

Thanks for this. I really appreciate your help :)