Bob423 52 Report post Posted September 15, 2011 i need to be able to make an ally act as an npc. just that one ally though. like sephiroth in one part of FF7. thanks Share this post Link to post Share on other sites
Bob423 52 Report post Posted September 17, 2011 where are you kellessdee! lol bump Share this post Link to post Share on other sites
Bob423 52 Report post Posted September 19, 2011 so is this one unspecific to? Share this post Link to post Share on other sites
Bigace360 38 Report post Posted September 19, 2011 (edited) Hope this is what you're looking for :sweatdrop: site: http://rpgcreative.net/rpgmaker/scripts-21-auto-combat.html #============================================================================== # ¦ Auto_Battle #------------------------------------------------------------------------------ # Edited from default scripts by Thousand Dragoon Link and Sir_KnightDragoon # Comments by Thousand Dragoon Link #============================================================================== class Scene_Battle #-------------------------------------------------------------------------- # ? Renewal of a frame (party command phase) #-------------------------------------------------------------------------- def update_phase2 if Input.trigger?(Input::C) case @party_command_window.index when 0 # Fight # Determine if a SE is performed. $game_system.se_play($data_system.decision_se) start_phase3 when 1 # Escape. # escape is not possible if $game_temp.battle_can_escape == false $game_system.se_play($data_system.buzzer_se) return end $game_system.se_play($data_system.decision_se) update_phase2_escape when 2 # Auto-Battle $game_system.se_play($data_system.decision_se) update_phase2_auto end return end end #-------------------------------------------------------------------------- # Renewal of a frame (party command phase : auto) #-------------------------------------------------------------------------- def update_phase2_auto loop do if @actor_index == $game_party.actors.size-1 start_phase4 return end @actor_index += 1 $game_party.actors[@actor_index].current_action.kind = 0 $game_party.actors[@actor_index].current_action.basic = 0 $game_party.actors[@actor_index].current_action.decide_random_target_for_actor end end end class Window_PartyCommand < Window_Selectable #-------------------------------------------------------------------------- # object initialization #-------------------------------------------------------------------------- def initialize super(0, 0, 640, 64) self.contents = Bitmap.new(width - 32, height - 32) self.back_opacity = 160 self.contents.font.name = $fontface self.contents.font.size = $fontsize #Change the commands to what you want them to say @commands = ["Combat", "Fuite", "Auto-Combat"] @item_max = 3 @column_max = 3 draw_item(0, normal_color) draw_item(1, $game_temp.battle_can_escape ? normal_color : disabled_color) draw_item(2, normal_color) self.active = false self.visible = false self.index = 0 end #-------------------------------------------------------------------------- def draw_item(index, color) self.contents.font.color = color rect = Rect.new(80 + index * 160 + 4, 0, 128 - 10, 32) self.contents.fill_rect(rect, Color.new(0, 0, 0, 0)) self.contents.draw_text(rect, @commands[index], 1) end #-------------------------------------------------------------------------- # Renewal of the rectangle cursor #-------------------------------------------------------------------------- def update_cursor_rect self.cursor_rect.set(80 + index * 160, 0, 128, 32) end end Edited September 19, 2011 by bigace Share this post Link to post Share on other sites
Bob423 52 Report post Posted September 19, 2011 lol wut? no, i have no idea what that is, but it doesnt look right. i want to make it so a certain actor always acts as an npc in battle. like an ally that you cant control. the ally will never be controllable ever, in any battle. period. they just help you out. like sephiroth in one part of FF7 http://www.youtube.com/watch?v=5j5CpXaSUqc in that battle, sephiroth is in your party, but he cannot be controlled, and will heal you if you die. Share this post Link to post Share on other sites
Bigace360 38 Report post Posted September 20, 2011 I know what your talking about thats why I gave you that script, no need for a video that I skipped over. It was in FF12 as well as RMVX. Its not NPC its Auto-battle, its just that I didn't look at that script well enough. I just saw the word autobattle script and got it. The word your looking for is Guest not NPC: Makes the character behave automatically, without being controlled by the player. I can try to make it, but we should let Kellesede do it. Share this post Link to post Share on other sites
kellessdee 48 Report post Posted September 20, 2011 I can try to make it, but we should let Kellesede do it. LOL, you shouldn't doubt your own ability ;) I am sure you could do this. Anyways, I WILL take a look into these scripts bob, I just have A REALLY tight/busy schedule at the moment, and I have no idea WHEN I will have the time to check these out. my schedule: Mon-thurs: School most of the day Fri-sun: work most of the day I have a 7 day schedule, every week. School also generates a lot of group work/other homework which that in combination with sleep (which I do not get near enough of, because of Linux XD, I don't remember the last time i booted to windows) takes up most of my free time. Sorry, that was a bit off-topic, but I am trying to say either A ) Do not rely on me or B ) Have A LOT of patience. Share this post Link to post Share on other sites
Bigace360 38 Report post Posted September 20, 2011 LOL, you shouldn't doubt your own ability ;) I am sure you could do this. Anyways, I WILL take a look into these scripts bob, I just have A REALLY tight/busy schedule at the moment, and I have no idea WHEN I will have the time to check these out. my schedule: Mon-thurs: School most of the day Fri-sun: work most of the day I have a 7 day schedule, every week. School also generates a lot of group work/other homework which that in combination with sleep (which I do not get near enough of, because of Linux XD, I don't remember the last time i booted to windows) takes up most of my free time. Sorry, that was a bit off-topic, but I am trying to say either A ) Do not rely on me or B ) Have A LOT of patience. Okay, I'll see what I can do. If it messes it up and I don't know why, I'll see if you can fix it. :sweatdrop: Share this post Link to post Share on other sites
kellessdee 48 Report post Posted September 20, 2011 Okay, I'll see what I can do. If it messes it up and I don't know why, I'll see if you can fix it. :sweatdrop: Haha, I wasn't implying you HAD to do it, it just seemed like you were cutting yourself short :) Although, if you are looking into expanding on your scripting abilities this would be great practice for you. Share this post Link to post Share on other sites