Per 2016, RMID pindah ke RMID Discord (Invite link dihapus untuk mencegah spambot -Theo @ 2019). Posting sudah tidak bisa dilakukan lagi.
Mohon maaf atas ketidaknyamanannya dan mohon kerjasamanya.
|
|
| [Solved] Tidak dapat EXP dari battle | |
| 2012-05-10, 17:52 | [Solved] Tidak dapat EXP dari battle |
---|
Spooky Kitaro Novice
Posts : 164 Thanked : 0 Engine : Multi-Engine User Skill : Very Beginner Type : Developer
| Mohon bantu saya. Setelah testplay projek saya and 3 party member sudah ke level dua, mereka tidak dapat EXP setelah battle. Sebelumnya mereka dapat ketika 1 member atua 2 member pun sebelum naik levelnya.. dan saya pakai sckript ini - Spoiler:
- Code:
-
################################################################################ # Fridgecrisis's EXP Controller (EXPC) # #------------------------------------------------------------------------------# # Version 1.2 # # This script allows you to easily edit the standard formula for your actors' # EXP tables. Place it anywhere below the default scripts and above Main. Then # simply edit the variables to your liking and test it out. # # Version Details: # 1.2 - 04/17/10 - Expanded the Set method and added Split EXP. # 1.1 - 03/18/10 - Minor format changes. # 1.0 - ??/??/10 - Finished Set, Steady, and Compound Methods. # # Future Features: # - Different formulas for different actors. # - More methods. # # Overwrites: # - Game_Actor: make_exp_list # - Game_Enemy: exp # - Game_Troop: exp_total # ################################################################################ # Instructions # #------------------------------------------------------------------------------# # #-Split EXP--------------# # SPLIT_EXP = true/false # #------------------------# # Setting this to true will split the final EXP received from battle between # party members. Setting it to false will use the default method, where each # member gets the full amount of EXP. # #-Choose Method--# # EXP_METHOD = x # #----------------# # This variable sets the method of EXP growth you'd like to use. See below for # descriptions of each method. # #-Method 1: Set------# # SET_NEED = x # # SET_LEVEL_TYPE = x # # <exp at level x> # #--------------------# # The Set method simply requires a certain amount of EXP for each level up, like # Fire Emblem or Paper Mario. Enemies will also drop less experience as your # levels go up, and SET_LEVEL_TYPE lets you choose how you want your levels to # be looked at. Add the <exp at level x> tag into the noteboxes of enemies for # them to yield the EXP you set in their database entry when the variable chosen # by LEVEL_TYPE is x. There are three options for LEVEL_TYPE: average, highest, # and lowest. # # Here, just look at the formula: # exp gained = enemy's regular exp drop * (exp at level / party's average or # highest or lowest level) # # For example, say SET_NEED is 100, LEVEL_TYPE is set to 1 (average), and a # Slime is set to drop 25 EXP. You add the tag <exp at level 2> into its # notebox. Ralph comes along at level 1 and kills the Slime. He receives 50 EXP, # because the normal EXP drop (25) is multiplied by the number in the # <exp at level> tag (2), over the party's average level (1). You're basically # doubling the experience. At level 2, Ralph will get the 25 EXP the database # says he will. But if Ralph comes back at level 5 and kills the Slime, he'll # get 2/5 of 25 EXP, or 10 EXP. # #-Method 2: Steady-# # STEADY_NEED = x # # STEADY_ADD = x # #------------------# # The Steady method takes the EXP needed for the previous level and adds a set # amount each level. # #-Method 3: Compound--# # COMPOUND_NEED = x # # COMPOUND_ADD = x # # COMPOUND_GROWTH = x # #---------------------# # The Compound method is like the Steady method, except that the growth gets # bigger with each level. # # For example: # base_need = 10, compound_total = 2, and compound_growth = 2: # 10 needed for level 2 # 12 needed for level 3 (10 + 2) # 16 needed for level 4 (12 + 4) # 22 needed for level 5 (16 + 6) # 30 needed for level 6 (22 + 8) # and so on. # #-EDIT HERE!-------------------------------------------------------------------# module FC module EXPC_CUSTOM SPLIT_EXP = true # Split final EXP amount between party members? # Choose Method EXP_METHOD = 1 # Set Method: 1 SET_NEED = 80 # How much needed per level? SET_LEVEL_TYPE = 1 # Use what level to determine EXP gain? # 1 = average, 2 = highest, 3 = lowest. # Steady Method: 2 STEADY_NEED = 15 # How much for level 2? STEADY_ADD = 15 # Add how much each level? # Compound Method: 3 COMPOUND_NEED = 15 # How much for level 2? COMPOUND_ADD = 15 # Start additions at what value? COMPOUND_GROWTH = 15 # Grow COMPOUND_ADD how much each level? end end #-STOP EDITING! (Unless you know what you're doing)----------------------------# ################################################################################ # Import # #------------------------------------------------------------------------------# $imported = {} if $imported == nil $imported["FC_EXPC"] = true ################################################################################ # Note Interpreter # #------------------------------------------------------------------------------# module FC module EXPC EXP_AT_LEVEL = /<(?:EXP_AT_LEVEL|exp at level)[ ]*(\d+)>/i end end class RPG::Enemy def fc_note_interpreter_expc @exp_at_level=1 self.note.split(/[\r\n]+/).each { |line| case line when FC::EXPC::EXP_AT_LEVEL @exp_at_level = $1.to_f end } end #----------------# # Applying Notes # #----------------# def exp_at_level fc_note_interpreter_expc if @exp_at_level == nil return @exp_at_level end end ################################################################################ # Game_Actor # #------------------------------------------------------------------------------# class Game_Actor < Game_Battler #---------------------------# # Make EXP List (Overwrite) # #---------------------------# def make_exp_list @exp_list[1] = @exp_list[100] = 0 exp_method = FC::EXPC_CUSTOM::EXP_METHOD set_need = FC::EXPC_CUSTOM::SET_NEED steady_need = FC::EXPC_CUSTOM::STEADY_NEED steady_add = FC::EXPC_CUSTOM::STEADY_ADD compound_need = FC::EXPC_CUSTOM::COMPOUND_NEED compound_add = FC::EXPC_CUSTOM::COMPOUND_ADD compound_growth = FC::EXPC_CUSTOM::COMPOUND_GROWTH case exp_method when 1 # Set for i in 2..99 @exp_list[i] = @exp_list[i-1] + set_need end when 2 # Steady @exp_list[2] = steady_need for i in 3..99 steady_need += steady_add @exp_list[i] = @exp_list[i-1] + Integer(steady_need) end when 3 # Compound @exp_list[2] = compound_need for i in 3..99 compound_add += compound_growth compound_need += compound_add @exp_list[i] = @exp_list[i-1] + Integer(compound_need) end end end end ################################################################################ # Game_Enemy # #------------------------------------------------------------------------------# class Game_Enemy < Game_Battler #-----------------# # EXP (Overwrite) # #-----------------# def exp result = enemy.exp if FC::EXPC_CUSTOM::EXP_METHOD == 1 # Average # if FC::EXPC_CUSTOM::SET_LEVEL_TYPE == 1 level_var = 0 for actor in $game_party.members do level_var += actor.level end level_var /= $game_party.members.size # Highest # elsif FC::EXPC_CUSTOM::SET_LEVEL_TYPE == 2 level_var = 0 for actor in $game_party.members do next if actor.level <= level_var level_var = actor.level end # Lowest # elsif FC::EXPC_CUSTOM::SET_LEVEL_TYPE == 3 level_var = 100 for actor in $game_party.members do next if actor.level >= level_var level_var = actor.level end end exp_yield = enemy.exp_at_level / level_var result *= exp_yield end return result.to_i end end ################################################################################ # Game_Troop # #------------------------------------------------------------------------------# class Game_Troop < Game_Unit #-----------------------# # EXP Total (Overwrite) # #-----------------------# def exp_total exp = 0 for enemy in dead_members exp += enemy.exp unless enemy.hidden end if FC::EXPC_CUSTOM::SPLIT_EXP return exp / $game_party.members.size else return exp end end end ################################################################################ # End. # ################################################################################
|
| | | 2012-05-10, 17:57 | Re: [Solved] Tidak dapat EXP dari battle |
---|
richter_h Salto Master Hancip RMID
Posts : 1705 Thanked : 30 Engine : Other Skill : Skilled Type : Developer
Awards:
| wait bisa dijelasin lagi ngga tuh? ane binun, maksude semua member ngga dapet EXP setelah naek level 2 atawa gimana? dan soal skrip itu apa udah bener setting skripne? soale ane ngga bisa test bed dimari |
| | | 2012-05-10, 18:00 | Re: [Solved] Tidak dapat EXP dari battle |
---|
Spooky Kitaro Novice
Posts : 164 Thanked : 0 Engine : Multi-Engine User Skill : Very Beginner Type : Developer
| Maskud saya, Mereka sudah level 2 and habis battle (waktu level 2) mereka tidak dapat EXP lagi. dan settingya benar |
| | | 2012-05-10, 18:02 | Re: [Solved] Tidak dapat EXP dari battle |
---|
richter_h Salto Master Hancip RMID
Posts : 1705 Thanked : 30 Engine : Other Skill : Skilled Type : Developer
Awards:
| - Amber wrote:
- Maskud saya, Mereka sudah level 2 and habis battle (waktu level 2) mereka tidak dapat EXP lagi.
dan settingya benar
wait emang si musuh bakalan ngasi EXP berapa? tadi dibaca2 si EXP dari musuh bisa aja ngga sama kek yang diset di database btw ngga pake sistem EXP bawaan RMVX aja? |
| | | 2012-05-10, 18:03 | Re: [Solved] Tidak dapat EXP dari battle |
---|
marjoni01 Senior
Posts : 971 Thanked : 5 Engine : RMVX Ace Skill : Intermediate Type : Developer
| @Amber Mungkin karena monsternya blm disetting buat EXP? Kalau settingnya bener harusnya juga benerkan di gamenya? |
| | | 2012-05-10, 18:14 | Re: [Solved] Tidak dapat EXP dari battle |
---|
Spooky Kitaro Novice
Posts : 164 Thanked : 0 Engine : Multi-Engine User Skill : Very Beginner Type : Developer
| Disettinganya benar tapi setelah battle gak dapat EXP di level 2 |
| | | 2012-05-10, 18:17 | Re: [Solved] Tidak dapat EXP dari battle |
---|
marjoni01 Senior
Posts : 971 Thanked : 5 Engine : RMVX Ace Skill : Intermediate Type : Developer
| @Amber Udh dicoba setting EXP_METHOD blm? Mungkin itu solusinya |
| | | 2012-05-10, 18:18 | Re: [Solved] Tidak dapat EXP dari battle |
---|
LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Awards:
| coba di remove dulu scriptnya, masih error kyk gitu apa ngga kalo masih error berarti sumber masalahnya bukan dari skrip itu |
| | | 2012-05-10, 18:57 | Re: [Solved] Tidak dapat EXP dari battle |
---|
Spooky Kitaro Novice
Posts : 164 Thanked : 0 Engine : Multi-Engine User Skill : Very Beginner Type : Developer
| Oh maksih mas marj. Metod 1 tidak dapat EXP tapi metod 2 dan 3 bias dapat EXP Sekarang saya pakai Method 2 Modmod boleh di lock SOLVED |
| | | 2012-05-10, 19:42 | Re: [Solved] Tidak dapat EXP dari battle |
---|
LowlingLife Administrator
Posts : 2000 Thanked : 25 Engine : Multi-Engine User
Awards:
| Berhubung udah solved dan saya lihat sepertinya tidak ada yang ingin ditambahkan lagi, maka saya akan me-lock thread ini. Kalau TS atau member lain ingin menambahkan, harap hubungi admin atau moderator setempat. Terima kasih. ~Locked Since Solved~ |
| | | | Re: [Solved] Tidak dapat EXP dari battle |
---|
Sponsored content
| | | | | [Solved] Tidak dapat EXP dari battle | |
|
Similar topics | |
|
Similar topics | |
| |
Halaman 1 dari 1 | |
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
Latest 10 Topics | [Web Novel] Gloria Infidelis 2016-11-17, 21:27 by LightNightKnight
[Announcement] Forum baru untuk RMID 2016-08-25, 16:39 by TheoAllen
Where I'm Wrong ? 2016-07-24, 16:10 by ReydVires
flakeheartnet's Resources part III 2016-07-08, 14:30 by flakeheartnet
Keira's Art Warehouse 2016-06-28, 19:27 by KeiraBlaze
Theo Core Time System + Bingung 2016-06-27, 16:24 by Lockin
Error Script, Maybe ? 2016-06-27, 16:20 by Lockin
Nusaimoe @ RMID Lounge 2016-06-21, 05:02 by Jihad Bagas
Call Random Battle 2016-06-15, 17:04 by Lockin
Flakeheartnet Resources Part II [come back gift] 2016-06-07, 15:51 by flakeheartnet
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|
|
|