I don't know what am doing wrong but I keep getting an error on the 28# line in the code when I try to make a Menu
Do I put the whole code or just what should I put?
##################################################
Basic Menu # Mog Plus V 1.0 #
##################################################
# By Moghunter
# Http://www.atelier-rgss.com
##################################################
Menu # VX standard with added extras, this
# Script you can work on it and adapt it
# Easily to your game.
#-------------------------------------------------
##############
# # Game_Actor
##############
class Game_Actor <Game_Battler
def now_exp
return @ exp - @ exp_list [@ level]
end
def next_exp
exp_list return @ [@ level +1]> 0? Exp_list @ [@ level +1] - @ exp_list [@ level]: 0
end
end
###############
# # Window_Base
###############
class Window_Base <Window
def draw_actor_level_menu (actor, x, y)
self.contents.font.color = system_color
self.contents.draw_text (x, y, 32, WLH, Vocab:: level_)
self.contents.font.color = normal_color
self.contents.draw_text (x + 16, y 24, WLH, actor.level, 2)
end
def draw_actor_class_menu (actor, x, y)
self.contents.font.color = normal_color
self.contents.draw_text (x, y, 85, WLH, actor.class.name)
end
def exp_gauge_color1
return TEXT_COLOR (30)
end
def exp_gauge_color2
return TEXT_COLOR (31)
end
def draw_actor_exp_meter (actor, x, y, width = 100)
if actor.next_exp! = 0
exp = actor.now_exp
else
exp = 1
end
gw = width * exp / [actor.next_exp, 1]. max
gc1 = exp_gauge_color1
GC2 = exp_gauge_color2
self.contents.fill_rect (x, y + WLH - 8, width, 6, gauge_back_color)
self.contents.gradient_fill_rect (x, y + WLH - 8, gw, 6, GC1, GC2)
self.contents.font.color = system_color
self.contents.draw_text (x, y, 30, WLH, "Exp")
self.contents.font.color = normal_color
xr = x + width
self.contents.draw_text (xr - 60, y 60, WLH, actor.next_rest_exp_s, 2)
end
end
#####################
# # Window_MenuStatus
#####################
class Window_MenuStatus <Window_Selectable
def initialize (x, y)
super (x, y, 384, 416)
refresh
self.active = false
self.index = -1
end
def refresh
self.contents.clear
@ = $ Item_max game_party.members.size
for actor in $ game_party.members
draw_actor_face (actor, 2, actor.index * 96 + 2, 92)
x = 104
actor.index = y + WLH * 96 / 2
draw_actor_name (actor, x, y)
draw_actor_class_menu (actor, x + 120, y)
draw_actor_level_menu (actor, x + 200, y)
draw_actor_state (actor, x, y + WLH * 2)
draw_actor_hp (actor, x + 120, y + WLH * 1)
draw_actor_mp (actor, x + 120, y + WLH * 2)
draw_actor_exp_meter (actor, x, y + WLH * 1)
end
end
def update_cursor
if @ index <0
self.cursor_rect.empty
elsif @ index <@ item_max
self.cursor_rect.set (0, @ index * 96, contents.width, 96)
elsif @ index> = 100
self.cursor_rect.set (0, (@ index - 100) * 96, contents.width, 96)
else
self.cursor_rect.set (0, 0, contents.width, item_max @ * 96)
end
end
end
############
# # Game_Map
############
Game_Map class
attr_reader: map_id
def mpname
$ Mpname load_data = ("Data / MapInfos.rvdata)
$ Mpname [@ map_id]. Name
end
end
###############
# # Window_Time
###############
class Window_Mapname
This what I am using.
When I use the code I get an error in line 28 if you don't add the ##### and names if you do add that part its on line 31
Our this the code you will be looking for I don't know what I did wrong please tell me I would be so happy
" return @ exp - @ exp_list [@ level] "