Jump to content
Sign in to follow this  
estriole

EST - BRIBE ENEMY TO RUN AWAY (Suikoden)

Recommended Posts

EST - SUIKODEN BRIBE RUN

 

 

Creator name : Estriole

Introduction

this will create [bribe] command below [fight], [run]. (or more if you use custom command)

bribe command is like in suikoden games. which you escape 100% success by paying the enemies some gold.


Features
- assign bribe cost using notetags

- gold cost counted from ALIVE enemies. example if you have to pay 5 slimes for 100 gold each. then you kill 1 slimes. you

  only need to pay 400 gold instead of 500 gold if you choose to bribe run away.

- good compatibility


Screenshots
not needed

How to Use
1) set your bribe cost for enemy. if not set they will use default bribe cost in module

<bribe_cost x>
x => your bribe gold cost

 

 

Script

http://pastebin.com/TD3txTmJ

 

Credits

- Estriole

 

Licences

In my signature. valid for all my script.

 

Note

this just simple script and i think i don't plan to make it complex like bribe using item, bribe by percentage of gold, etc.

Edited by estriole

Share this post


Link to post
Share on other sites

Hey estriole, I'm noticing an issue/bug with the script. It seems that I can "Bribe" the enemy for instance; "20" Game money, but I have "0" Game money. So, Its allowing me to "Bribe" the enemy with no money, even though i have it set to need "20" game points. Anyway to correct this?

Share this post


Link to post
Share on other sites

it might incompatibility issues. it works fine in here.

if party gold below the gold cost to bribe. the bribe command itself will be disabled

 

i test it using:

1) default battle system

2) yanfly battle system

3) victor battle system

 

all works.

Edited by estriole

Share this post


Link to post
Share on other sites

it might incompatibility issues. it works fine in here.

if party gold below the gold cost to bribe. the bribe command itself will be disabled

 

i test it using:

1) default battle system

2) yanfly battle system

3) victor battle system

 

all works.

 

Yes, went back to find the incompatibility.. and I never really looked in-depth with YEA - Battle Command List until now, as you can see below, I plugged in the "Bold" line and it works like a charm as should :)

 

 

#==============================================================================
# ¡ Window_PartyCommand
#==============================================================================
 
class Window_PartyCommand < Window_Command
  
  #--------------------------------------------------------------------------
  # overwrite method: make_command_list
  #--------------------------------------------------------------------------
  def make_command_list
    for command in YEA::BATTLE_COMMANDS::PARTY_COMMANDS
      case command
      when :fight
        add_command(Vocab::fight, :fight)
      when :escape
        add_command(Vocab::escape, :escape, BattleManager.can_escape?)
      when :combatlog
        next unless $imported["YEA-CombatLogDisplay"]
        add_command(YEA::COMBAT_LOG::COMMAND_NAME, :combatlog)
      when :bribe
        add_command(ESTRIOLE::BRIBE_RUN_COMMAND_VOCAB, :bribe, BattleManager.can_bribe?)
      when :autobattle
        next unless $imported["YEA-CommandAutobattle"]
        add_autobattle_command
      when :party
        next unless $imported["YEA-PartySystem"]
        next unless $imported["YEA-CommandParty"]
        add_party_command
      else
        process_custom_command(command)
      end
    end
  end

 

Share this post


Link to post
Share on other sites

actually... you don't have to put that code. just put my script below yanfly's. since i alias the make_command_list method.

but it will put bribe command at the bottom.

 

unless you want to put it in specific place then you might need to edit it like that :D.

Share this post


Link to post
Share on other sites

actually... you don't have to put that code. just put my script below yanfly's. since i alias the make_command_list method.

but it will put bribe command at the bottom.

 

unless you want to put it in specific place then you might need to edit it like that :D.

 

You are correct, I didn't have to put that code their and I did have your script below yanflys command list. But, as you stated, I had it in a specific place on my command list which was causing the script to not work exactly like it should. So, in my case. The edit was needed  ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×