Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Conversion Script

From

Member

Hello guy =)
I need your help...
You can convert this script for RPG Maker XP?
Code:
    class Scene_Battle < Scene_Base

      def judge_win_loss

        if $game_temp.in_battle

          if $game_party.all_dead?

            process_defeat

            return true

          elsif $game_troop.all_dead? and !$troop_ext.extend

            process_victory

            return true

          elsif $game_troop.all_dead? and $troop_ext.extend

            $game_troop.setup_extension

            if $troop_ext.display_emerged

              for name in $game_troop.enemy_names

                text = sprintf(Vocab::Emerge, name)

                $game_message.texts.push(text)

              end

            end

            @spriteset.dispose_enemies

            @spriteset.create_enemies

          else

            return false

          end

        else

          return true

        end

      end

    end

 

    class Troop_Extensions

      attr_reader :progression, :extend, :current_troop, :display_emerged

      def initialize

        @progression = []

        @extend = false

        @current_troop = nil

        @display_emerged = true

      end

     

      def setup_extension(prog)

        @progression = prog.to_a

        @extend = true

        @current_troop = nil

      end

     

      def get_next_troop

        if !@extend

          return nil

        end

        id = @progression.shift

        if @progression.size == 0

          @extend = false

        end

        @current_troop = id

        return $data_troops[id]

      end

     

      def emerge(tf=true)

        @display_emerged = tf

      end

    end

 

    $troop_ext = Troop_Extensions.new

 

    class Game_Troop < Game_Unit

 

      def setup_extension

        troop = $troop_ext.get_next_troop

        for member in troop.members

          next if $data_enemies[member.enemy_id] == nil

          enemy = Game_Enemy.new(@enemies.size, member.enemy_id)

          enemy.hidden = member.hidden

          enemy.immortal = member.immortal

          enemy.screen_x = member.x

          enemy.screen_y = member.y

          @enemies.push(enemy)

        end

        make_unique_names

      end

    end

 

    class Game_Interpreter

      def extend_troop(*args)

        $troop_ext.setup_extension(args)

        return true

      end

    end
This script, is for RMVX.
After the battles, it makes you fight with other enemies.
Original Link:
http://www.rpgmakervx.net/index.php?showtopic=48095
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top