Hi, first of all sorry I know I have posted here a lot today.
I am making a menu system and... am having a bit of trouble.
This is the Limit Break part, or what is done of it so far:
I know I have probably done it all wrong but... oh well. ':|
The bit I am stuck on is this. I need to find out what the ID of a character in the party is.
@actor = $game_party.actors[actor].actor_id
But I get the error "cannot convert Game_Actor into an Integer".
Anyone know what the proper syntax is?
I am making a menu system and... am having a bit of trouble.
This is the Limit Break part, or what is done of it so far:
Code:
class Window_LimitCommand < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(actor)
super(6, 60, 182, 62)
self.contents = Bitmap.new(width - 32, height - 32)
self.back_opacity = 160
@commands = []
@actor = $game_party.actors[actor].actor_id
@commands.push("Sonic Slash") if @actor = 1 and $actor1limit <= 0
@commands.push("Chaotic Fury") if @actor = 1 and $actor1limit <= 1
@commands.push("Meteora") if @actor = 1 and $actor1limit <= 2
@commands.push("Final Blow") if @actor = 1 and $actor1limit <= 3
@commands.push("Heavenly Touch") if @actor = 2 and $actor1limit <= 0
@commands.push("Blessings") if @actor = 2 and $actor1limit <= 1
@commands.push("Hell Hath no Fury") if @actor = 2 and $actor1limit <= 2
@commands.push("Nature's Fury") if @actor = 2 and $actor1limit <= 3
@commands.push("Triple Slash") if @actor = 3 and $actor1limit <= 0
@commands.push("Fury Blow") if @actor = 3 and $actor1limit <= 1
@commands.push("Last Resort") if @actor = 3 and $actor1limit <= 3
@commands.push("Vow of Silence") if @actor = 3 and $actor1limit <= 2
@item_max = 4
@column_max = 2
self.active = false
self.index = 0
end
#--------------------------------------------------------------------------
# * Draw Item
# index : item number
# color : text character color
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
def update_cursor_rect
self.cursor_rect.set(160 + index * 160, 0, 128, 32)
end
end
I know I have probably done it all wrong but... oh well. ':|
The bit I am stuck on is this. I need to find out what the ID of a character in the party is.
@actor = $game_party.actors[actor].actor_id
But I get the error "cannot convert Game_Actor into an Integer".
Anyone know what the proper syntax is?