ComediaMaker
Faça Login e conecte-se!!!

Ainda nao é membro?
Registre-se logo e faça parte
dessa Bagaça!!




Easy Scripts (Script para facilitar o RGSS2)

Ir em baixo

Dispondo Easy Scripts (Script para facilitar o RGSS2)

Mensagem por Diogo Pegasus em Seg Maio 09, 2011 12:22 pm

"Easy Scripts v1.0"
Por: Chicheater
Introdução:
Este script foi feito para facilitar o RGSS2 (totalmente aconcelhável para novatos em RGSS2)
Características:

Esta ainda é a 1ª versão do script (vou tentar actualizar sempre que possivel ^^)

Funções Disponiveis: 30

Lista das funções incluidas:

1 - Fade Screen
2 - Change Character Graphic
2.1 - Get Graphics
3 - Teleport
3.1 - Get Position
4 - Learn Skill
5 - Actor Status
5.1 - Get Status
6 - Chage Party Members
7 - Message
8 - Control Switches
8.1 - Get Switch Value
9 - Control Variables
9.1 - Get Variable Value
10 - Timer
10.1 - Get Timer Value
11 - Self Switches
12 - Money
13 - Items
14 - Common Events
15 - Change Equippment
15.1 - Get Equipment
16 - Change Actor Name or Class
16.1 - Get Actor Name or Class
17 - Create Sprite
18 - Show Animation
19 - Audio Control
20 - Scene Control
21 - Control Accesses
22 - Change System Audio

Screenshots:
Axo isso desnecessário já que não altera nada no jogo (só na forma de o fazer)
Como usar:
Instruções TODAS dentro do script de instruções
Script:
Intruções

Código:
=begin
                              Easy Scripts
                                                    Made by Chicheater
                                                        version 1.0
                                                   
                  -----------------------------------
        So this is my new script, that can help lots of people
                making their own scripts in RGSS2.
               
          THIS SCRIPT DOESN'T HAVE ALL THE FUNCTIONS OF RGSS2
       
            OK  now i will show you how this script works
           
WARNING:
This script must be on top of all custom ,made with this script, scripts (above Main and below Materials)
*FUNCTIONS*:

 Fade Screen:
  Is the fade out/in screen effect, to use it write this:
        $easy_scripts.fade_screen("op",t)
        "op" = determinates if the fade is in or out write  "out" or "in"
        t = time, in frames, of the duration of the fade effect
       
--------------------------------------------------------------------------------
 Change Character Graphic:
  This function is used to chage the actors graphic, use it like this:
        $easy_scripts.change_character_graphic(id, name, index, face, f_index)
        id      = The ID of the actor (e.g  Ralph's ID = 1,  Ylva's ID = 4)
        name    = The name of the graphic (must be in the "Graphics/Character/" folder)
        index  = The index of the image in the graphic* (e.g. Ralph's index = 0, Ylva's index = 5)
        face    = Same as name but for the face graphic
        f_index = Same as index but for the face graphic
       
        *index can only be from 0 to 7
       
    TIP: How to get current graphics?
      use this:
          variable = $easy_scripts.get_graphics(act, graph)
          act = Actor ID (line 30)
          graph = Determinates whitch graphic you want to get
                  ("name", "name index", "face" or "face index")
         
    Exemple: if you want the current face of the actor 1, use this:
        variable =  $easy_scripts.get_graphics(1,"face")
       
--------------------------------------------------------------------------------
 Teleport:
  This makes the player teleport, use this:
      $easy_scripts.teleport(map, x, y, d)
      map = This is the new map that you want to teleport
      x  = This is the new x-coordinade
      y  = This is the new y-coordinate
      d  = This is the new direction of the player(2:Down|4:Left|6:Right|8:Up)
     
  TIP: How to get current position(map, x, y, direction)?
      use this:
          variable = $easy_scripts.get_position(op)
          op = Determinates what you want to get ("map", "x", "y" or "direction")
--------------------------------------------------------------------------------
 Learn Skill:
  This makes an actor learn/forget a skill
      $easy_scripts.actor_learn_skill(act, "op", skill)
      act  = Actor ID (line 30)
      op    = determinates if the actor will learn or forget a skill, write "learn" or "forget"
      skill = Skill ID (e.g. Heal's ID is 33)
     
--------------------------------------------------------------------------------
 Actor Status:
  This makes an actor increase or decrease a parameter, use this:
    $easy_scripts.actor_status(act, status, op, value)
    act    = Actor ID (line 30)
    status = This is the stat that you want to add/remove from a actor*
    op    = Determinates if the actor will gain or lose a status, write "add" or "remove"
    value  = Determinates how much the actor will gain/lose
*status codes*:
  "level" = Level
  "exp"  = Experience
  "maxhp" = Max HP
  "maxmp" = Max MP
  "hp"    = Current HP
  "mp"    = Current MP
  "atk"  = Attack
  "def"  = Defense
  "agi"  = Agility
  "spi"  = Spirit
  "state" = State ID (when using get_status this will appear in array)
           
    TIP: How to get acurrent status?
      use this:
          variable = $easy_scripts.get_status(act, op)
          op = Determinates what you want to get (same as *status codes*)
   
--------------------------------------------------------------------------------
  Chage Party Members:
    This one, the name says everithing, changes the party members, use this:
        $easy_scripts.change_party_member(op, actor)
        op    = Determinates if the actor will join or leave the party, write "add" or "remove"
        actor = Actor ID (line 30)
--------------------------------------------------------------------------------
  Message:
    This function writes a message in the message board, use this:
        $easy_scripts.message(text, face, index, position, back)
        text    = Text that will display in the message board
        face    = Face graphic name(e.g.  "Actor1")
        index    = Index of the face graphic (line 32)
        position = Position of the window (0:Top|1:Midle|2:Bottom)
        back    = Background of the message board (0:Normal|1:Dim|2:Transparent)
       
    TIP: if you want you can only modify a certain field like:
    $easy_scripts.message(text)
          Only will display a message in the default proprieties
                                                            of the message board
    or liket this:
    $easy_scripts.message(text, face, index)
          It will only display the message with a face in it with the default
                                                        position and background.
      hope you understand, else contact me (cantact is in the main script)
--------------------------------------------------------------------------------
  Control Switches:
    This function controls the switches to ON or OFF, use this:
        $easy_scripts.control_switches(switch,value,batch,start,limit)
        switch = Nº of the switch
        value  = Determinates if the switches are gonna get ON or OFF, write "ON" or "OFF"
        batch  = Determinates if the control is going to batch more than 1 switch
        start  = Determinates the start switch (Only needed if batch = true)
        limit  = Determinates the limit switch (Only needed if batch = true)
       
  TIP: How to get a switch value?
  use this:
      $easy_sripts.get_switch_value(switch)
      switch = Switch ID
--------------------------------------------------------------------------------
  Control Variables:
    This function controls the variables value, use this:
        $easy_scripts.control_variables(variale, op, value,batch,start,limit)
        variable = Nº of the variables
        op      = This is what you want to do with the value in the variable*
        value    = Determinates the value that the variables will operate
        batch    = Determinates if the control is going to batch more than 1 variable
        start    = Determinates the start variable (Only needed if batch = true)
        limit    = Determinates the limit variable (Only needed if batch = true)
       
*op codes*:
  "set" = Sets a value    (var = value)
  "add" = Sum a value      (var + value)
  "sub" = Sub a value      (var - value)
  "mul" = Multiply a value (var * value)
  "div" = Divide a value  (var / value)
  "mod" = Gives the rest of a division like 2/4 the rest is 0 (2/4 %= 0)
 
 
  TIP: How to get a variable value?
  use this:
      $easy_sripts.get_variable_value(variable)
      variable = variable ID
--------------------------------------------------------------------------------
  Timer:
    This one controls the timer, use this:
        $easy_scripts.timer(min, sec, start)
          min = minutes you wish the timer have
          sec = second you wish the timer have
        start = truth value if the timer starts counting or not (true/false)
       
  if you want to the countdown start automaticly just use:
          $easy_scripts.timer(min, sec)
       
  TIP: How to get the current time?
  use this:
      $easy_sripts.get_timer_value(type)
      type = Determinates what you want to get("all"*, "min" or "sec")
      *all is the time in seconds but without the minutes
        exemple if time is 1 minute and 20 seconds the all time is 80
       
       
--------------------------------------------------------------------------------
  Self Switches:
    This controls the self switches of the events, use this:
        $easy_scripts.self_switches(map, event, switch, op)
        map = Map ID
        event = Event ID
        switch = Switch Name ("A", "B", "C" or "D")
        op = Truth value of the self switch ("ON" or "OFF")
--------------------------------------------------------------------------------
  Money:
    This function operate the party's money, use this:
      $easy_scripts.money(value, op)
      op      = This is what you want to do with the money*
      value    = Determinates the value that the variables will operate
       
*op codes*:
  "set" = Sets a value    (money = value)
  "add" = Sum a value      (money + value)
  "sub" = Sub a value      (money - value)
  "mul" = Multiply a value (money * value)
--------------------------------------------------------------------------------
  Items:
    Make the party gain/lose an item, use this:
      $easy_scripts.items(item, id, value, op)
      item  = The type of item ("item", "weapon" or "armor")
      id    = The ID of the item (e.g.  Potion's ID = 1)
      value = Determinates the value that will add/remove of the item
      op    = Determinates if the party will gain or lose the item, write "add" or "remove"
 
    TIP: if you just want to add a item, only use this:
        $easy_scripts.items(item, id, value)  <=  no need the op ^^
   
--------------------------------------------------------------------------------
  Common Events:
    This function calls a common event, use this:
      $easy_scripts.call_common_event(id)
      id = Common Event ID
--------------------------------------------------------------------------------
  Change Equipment:
    This one changes the equipment of an character, use this:
      $easy_scripts.change_equipment(act, weapon, shield, helmet, body_armor, accessory)
      act = Actor ID (line 30)
      weapon = Weapon ID
      shield -------\
      helmet --------\
                      = Armor ID (Armor ID is the same for all kinds of armor)
      body_armor ----/
      accessory ----/
     
    TIP: How to get current equipment?
      use this:
          variable = $easy_scripts.get_equipment(act, equip)
          act = Actor ID (line 30)
          equip = Determinates whitch equip you want to get
                  ("shield", "helmet", "body armor" or "accessory")
         
    Exemple: if you want the current body armor on the actor 4, use this:
        variable =  $easy_scripts.get_equipment(4,"body armor")
--------------------------------------------------------------------------------
  Change Actor Name or Class:
    With this you can change the actors name and class, use this
        $easy_scripts.change_actor_name(act, op, value)
        act = Actor ID (line 30)
        op  = Determinates what the function will change ("name" or "class")
        value = Determinates the value that will change (for "name" write the name in "", for the class put the Class ID)
       
  TIP: How to get current name or class?
      use this:
          variable = $easy_scripts.get_name_class(act, op)
          act = Actor ID (line 30)
          op = Determinates what you want to get ("class" or "name")
--------------------------------------------------------------------------------
  Create Sprite:
      This makes a sprite (insert a picture), use this:
          $easy_scripts.create_sprite(var, pic, x, y, z, zoom_x, zoom_y, opac, blend)
          var    =  variabe that will handle the sprite (i advice to use a @ before the variable like this:  @sprite)
          pic    =  name of the picture that you want to insert (it have to be in the Graphics/Picture/ folder)
          x      = x-coordinate of the pic in the screen
          y      = y-coordinate of the pic in the screen
          zoom_x = Zoom in x-coordinate of the pic in the screen (in %, default = 100% (don't put the % sysmbol))
          zoom_y = Zoom in y-coordinate of the pic in the screen (in %, default = 100% (don't put the % sysmbol))
          opac  = Opacity of the sprite
          blend  = Blend type of the pic (0:Normal|1:Add|2:Sub)
         
    TIP: If you want to change the x & y only, use this
          $easy_scripts.create_sprite(var, pic, x, y)
         
    Exemple: $easy_scripts.create_sprite(@sprite1, "myimage", 50, 100)
--------------------------------------------------------------------------------
  Show Animation:
    This one call a animation to show in the map, use this:
      $easy_scripts.call_animation(anim_id, op, event)
      anim_id = Animation ID
      op = Determinate where the animation will show ("player" or "event")
      event = Event ID in the map (only use this when op = "event")
     
    TIP: When the op = "player", use this:
      $easy_scripts.call_animation(anim_id, "player")
--------------------------------------------------------------------------------
  Audio Control:
    Whith this you can play/stop audio, use this:
      $easy_scripts.audio_control(type, op, name, volume, pitch)
      type  = Audio type ("bgm", "bgs", "me" or "se")
      op    = Operation ("play" or "stop")
      volume = Is the percentage of the volume (in %, default = 100% (don't put the % sysmbol))
      pitch  = Is the percentage of the pitch (in %, default = 100% (don't put the % sysmbol))
--------------------------------------------------------------------------------
  Scene Control:
      This makes you call a scene, use this:
        $easy_scripts.scene_control(scene, can_lose, can_escape, troop)
        scene = Here you choose wich screen you want to call
        can_lose = Truth value if the party can continue after loses a battle (only use when scene = "battle")
        can_escape = Truth value if the party can escape in a battle (only use when scene = "battle")
        troop = Troop ID (if you want it to be random dont write nothing)
       
       
*scene*:
"menu"      =  Is the main menu Scene
"battle"    =  Is the Battle Scene (the toops are in the map encounters or use the troop)
"shop"      =  Is the Shop Scene
"name"      =  Is the Name Scene
"save"      =  Is the Save Menu Scene
"debug"    =  Is the Debug Menu Scene
"game over" =  Is the Game Over Scene
"title"    =  Is the Title Menu Scene
--------------------------------------------------------------------------------
  Control Accesses:
    This one changes the access of the menu/save menu/encounters, use this:
      $easy_scripts.control_accesses(op, value)
      op = Determinates wich command will enable/disable ("menu" ,"save" or "encounter")
      value = Determinates  if the command will enable or disable("enable" or "disable")
--------------------------------------------------------------------------------
  Change System Audio:
    This makes you modify the Battle BGM or the ME of the end of the battle, use this:
      $easy_scripts.change_system_audio(op, value)
      op = Determinates wich audio you want to change("battle bgm" or "end battle me")
      value = Name of the music/sound (must be in in "Audio/ BGM or ME/" folder)
--------------------------------------------------------------------------------
=end

Script em si:
Código:
=begin
                            Easy Scripts
                                                    Made by Chicheater
                                                        version 1.0
                                                   
                  -----------------------------------
        So this is my new script, that it can help lots of people
                making their own scripts in RGSS2.
               
                This script only have 30 functions yet
               
          THIS SCRIPT DOESN'T HAVE ALL THE FUNCTIONS OF RGSS2
         
          if you have any questions, contact me:
            mail/msn: paulinho_chicha@hotmail.com
            skype: chicheater
List of the functions: (see the instructions to know more about these functions)
  1  - Fade Screen
  2  - Change Character Graphic
  2.1  - Get Graphics
  3  - Teleport
  3.1  - Get Position
  4  - Learn Skill
  5  - Actor Status
  5.1  - Get Status
  6  - Chage Party Members
  7  - Message
  8  - Control Switches
  8.1  - Get Switch Value
  9  - Control Variables
  9.1  - Get Variable Value
  10  - Timer
  10.1  - Get Timer Value
  11  - Self Switches
  12  - Money
  13  - Items
  14  - Common Events
  15  - Change Equippment
  15.1  - Get Equipment
  16  - Change Actor Name or Class
  16.1  - Get Actor Name or Class
  17  - Create Sprite
  18  - Show Animation
  19  - Audio Control
  20  - Scene Control
  21  - Control Accesses
  22  - Change System Audio
=end
class Easy_Scripts
 
  attr_reader :active
  def initialize
    @active = true
  end
 
  def fade_screen(op,t)
    if op == "out"
      Graphics.fadeout(t)
    elsif op == "in"
      Graphics.fadein(t)
    end
  end
 
  def change_character_graphic(id, name, index, face, f_index)
    $game_actors[id].character_name = name
    $game_actors[id].character_index = index
    $game_actors[id].face_name = face
    $game_actors[id].face_index = f_index
    m = $game_map.map_id
    x = $game_player.x
    y = $game_player.y
    d = $game_player.direction
    $easy_scripts.teleport(m,x,y,d)
  end
 
  def get_graphics(act, graph)
    actor = $game_actors[act]
    if graph == "name"
      return actor.character_name
    elsif graph == "name index"
      return actor.character_index
    elsif graph == "face"
      return actor.face_name
    elsif graph == "face index"
      return actor.face_index
    end
  end
 
  def teleport(map, x, y, d)
    $game_map.setup(map)
    $game_player.moveto(x, y)
    $game_player.direction = d
    $game_player.refresh
  end
 
  def get_position(op)
    player = $game_player
    if op == "map"
      return $game_map.map_id
    elsif op == "x"
      return player.x
    elsif op == "y"
      return player.y
    elsif op == "direction"
      return player.direction
    end
  end
 
  def actor_learn_skill(act, op, skll)
    actor = $game_actors[act]
    if op == "learn"
      actor.learn_skill(skll)
    elsif op == "forget"
      actor.forget_skill(skll)
    end
  end
 
  def actor_status(act, status, op, value)
    actor = $game_actors[act]
    if op == "add"
      if status == "level"
        actor.level += value
      end
      if status == "exp"
        actor.exp += value
      end
      if status == "maxhp"
        actor.maxhp += value
      end
      if status == "maxmp"
        actor.maxmp += value
      end
      if status == "hp"
        actor.hp += value
      end
      if status == "mp"
        actor.mp += value
      end
      if status == "atk"
        actor.atk += value
      end
      if status == "def"
        actor.def += value
      end
      if status == "agi"
        actor.agi += value
      end
      if status == "spi"
        actor.spi += value
      end
      if status == "state"
        actor.add_state(value)
      end
    elsif op == "remove"
      if status == "level"
        actor.level -= value
      end
      if status == "exp"
        actor.exp -= value
      end
      if status == "maxhp"
        actor.maxhp -= value
      end
      if status == "maxmp"
        actor.maxmp -= value
      end
      if status == "atk"
        actor.atk -= value
      end
      if status == "def"
        actor.def -= value
      end
      if status == "agi"
        actor.agi -= value
      end
      if status == "spi"
        actor.spi -= value
      end
      if status == "state"
        actor.remove_state(value)
      end
    end
  end
 
  def get_status(act, op)
    actor = $game_actors[act]
    if op == "level"
      return actor.level
    elsif op == "exp"
      return actor.exp
    elsif op == "maxhp"
      return actor.maxhp
    elsif op == "maxmp"
      return actor.maxmp
    elsif op == "atk"
      return actor.atk
    elsif op == "def"
      return actor.def
    elsif op == "agi"
      return actor.agi
    elsif op == "spi"
      return actor.spi
    elsif op == "state"
      stat = []
      for i in 0 ... actor.states.size
        stat[i] = actor.states[i].id
      end
      return stat
    end
  end
 
  def change_party_member(op, actor)
    if actor != nil and actor != 0
      prty = $game_party
      if op == "add"
        prty.add_actor(actor)
      end
      if op == "remove"
        prty.remove_actor(actor)
      end
    end
  end
 
  def message(text, face = "", index = 0, position = 2, back = 0)
    w = $game_message
    w.face_name = face
    w.face_index = index
    w.position = position
    w.background = back
    w.texts.push(text)
  end
 
  def control_switches(switch, value, batch = false, start = 1 ,limit = 1)
    if batch == false
      if value == "ON"
        $game_switches[switch] = true
      elsif value == "OFF"
        $game_switches[switch] = false
      end
    elsif batch == true
      for i in start ... limit
        if value == "ON"
          $game_switches[i] = true
        elsif value == "OFF"
          $game_switches[i] = false
        end
      end
    end
  end
 
  def get_switch_value(switch)
    return $game_switches[switch]
  end
 
  def control_variables(variable, op ,value, batch = false, start = 1 ,limit = 1)
    if batch == false
      if op == "set"
        $game_variables[variable] = value
      elsif value == "add"
        $game_variables[variable] += value
      elsif value == "sub"
        $game_variables[variable] -= value
      elsif value == "mul"
        $game_variables[variable] *= value
      elsif value == "div"
        $game_variables[variable] /= value
      elsif value == "mod"
        $game_variables[variable] %= value
      end
    elsif batch == true
      for i in start ... limit
        if op == "set"
          $game_variables[variable] = value
        elsif value == "add"
          $game_variables[variable] += value
        elsif value == "sub"
          $game_variables[variable] -= value
        elsif value == "mul"
          $game_variables[variable] *= value
        elsif value == "div"
          $game_variables[variable] /= value
        elsif value == "mod"
          $game_variables[variable] %= value
        end
      end
    end
  end
 
  def get_variable_value(variable)
    return $game_variables_value[variable]
  end
 
  def timer(min, sec, start = true)
    time = (min * 60) + sec
    $game_system.timer = time * Graphics.frame_rate
    if start == true
      $game_system.timer_working = true
    end
  end
 
  def get_timer_value(type)
    tm = $game_system.timer
    t = tm / Graphics.frame_rate
    min = t / 60
    if type == "all"
      return t
    elsif type == "min"
      return min
    elsif type == "sec"
      return t - min
    end
  end
 
  def self_switches(map, event, switch, op)
    id = [map, event, switch]
    if op == "ON"
      $game_self_switches[id] = true
    elsif op == "OFF"
      $game_self_switches[id] = false
    end
  end
 
  def money(value, op)
    if op == "set"
      $game_party.gold = value
    elsif op == "add"
      $game_party.gold += value
    elsif op == "sub"
      $game_party.gold -= value
    elsif op == "mul"
      $game_party.gold *= value
    end
  end
 
  def items(item, id, value, op = "add")
    if item == "item"
      data = $data_items[id]
    elsif item == "weapon"
      data = $data_weapons[id]
    elsif item == "armor"
      data = $data_armors[id]
    end
    if op == "add"
      $game_party.gain_item(data, value)
    elsif op == "remove"
      $game_party.lose_item(data, value)
    end
  end
 
  def call_common_event(id)
    $game_temp.common_event_id = id
  end
 
 
 def change_equipment(act, weapon = $game_actors[act].weapon_id, shield =
 $game_actors[act].armor1_id, helmet = $game_actors[act].armor2_id,
body_armor = $game_actors[act].armor3_id, accessory =
$game_actors[act].armor4_id)
    actor = $game_actors[act]
    actor.weapon_id = weapon
    actor.armor1_id = shield
    actor.armor2_id = helmet
    actor.armor3_id = body_armor
    actor.armor4_id = accessory
  end
 
  def get_equipment(act, equip)
    actor = $game_actors[act]
    if equip == "weapon"
      return actor.weapon_id
    elsif equip == "shield"
      return actor.armor1_id
    elsif equip == "helmet"
      return actor.armor2_id
    elsif equip == "body armor"
      return actor.armor3_id
    elsif equip == "accessory"
      return actor.armor4_id
    end
  end
 
  def change_actor_name(act, op, value)
    actor = $game_actors[act]
    if op == "name"
      actor.name = value
    elsif op == "class"
      actor.class_id = value
    end
  end
 
  def get_name_class(act, op)
    actor = $game_actors[act]
    if op == "name"
      return actor.name
    elsif op == "class"
      return actor.class_id
    end
  end
 
  def create_sprite(var, pic, x = 0, y = 0, z = 0, zoom_x = 100, zoom_y = 100, opac = 255, blend = 0)
    var = Sprite.new
    var.bitmap = Cache.picture(pic)
    var.x = x
    var.y = y
    var.z = z
    var.zoom_x = zoom_x / 100
    var.zoom_y = zoom_y / 100
    var.opacity = opac
    var.blend_type = blend
  end
 
  def call_animation(anim_id, op, event = 1)
    if op == "player"
      $game_player.animation_id = anim_id
    elsif op == "event"
      $game_map.events[event].animation_id = anim_id
    end
  end
 
  def audio_control(type, op, name, volume = 100, pitch = 100)
    if op == "play"
      if type == "bgm"
        Audio.bgm_play("Audio/BGM/" + name, volume, pitch)
      elsif type == "bgs"
        Audio.bgs_play("Audio/BGS/" + name, volume, pitch)
      elsif type == "me"
        Audio.me_play("Audio/ME/" + name, volume, pitch)
      elsif type == "se"
        Audio.se_play("Audio/SE/" + name, volume, pitch)
      end
    elsif op == "stop"
      if type == "bgm"
        Audio.bgm_stop("Audio/BGM/" + name, volume, pitch)
      elsif type == "bgs"
        Audio.bgs_stop("Audio/BGS/" + name, volume, pitch)
      elsif type == "me"
        Audio.me_stop("Audio/ME/" + name, volume, pitch)
      elsif type == "se"
        Audio.se_stop("Audio/SE/" + name, volume, pitch)
      end
    end
  end
 
  def scene_control(scene, can_lose = false, can_escape = true, troop = 0)
    if scene == "menu"
      Sound.play_decision
      $scene = Scene_Menu.new
    elsif scene == "battle"
      $game_player.make_encounter_troop_id
      troop_id = $game_player.make_encounter_troop_id  # Determine troop
      if troop_id != nil
        if troop != 0
          $game_troop.setup(troop)
        else
          $game_troop.setup(troop_id)
        end
        $game_troop.can_escape = true
        $game_temp.battle_proc = nil
        Graphics.update
        $game_player.make_encounter_count
        $game_player.straighten
        $game_temp.map_bgm = RPG::BGM.last
        $game_temp.map_bgs = RPG::BGS.last
        RPG::BGM.stop
        RPG::BGS.stop
        Sound.play_battle_start
        $game_system.battle_bgm.play
        $game_troop.can_lose = can_lose
        $game_troop.can_escape = can_escape
        $scene = Scene_Battle.new
      end
    elsif scene == "shop"
      $scene = Scene_Shop.new
    elsif scene == "name"
      $scene = Scene_Name.new
    elsif scene == "save"
      $scene = Scene_File.new(true, false, true)
    elsif scene == "debug"
      Sound.play_decision
      $scene = Scene_Debug.new
    elsif scene == "game over"
      $scene = Scene_Gameover.new
    elsif scene == "title"
      $scene = Scene_Title.new
      fadeout(60)
    end
  end
 
  def control_accesses(op, value)
    if op == "encounter"
      if value == "enable"
        $game_system.encounter_disabled = false
      elsif value == "disable"
        $game_system.encounter_disabled = true
      end
    end
    if op == "menu"
      if value == "enable"
        $game_system.menu_disabled = false
      elsif value == "disable"
        $game_system.menu_disabled = true
      end
    end
    if op == "save"
      if value == "enable"
        $game_system.save_disabled = false
      elsif value == "disable"
        $game_system.save_disabled = true
      end
    end
  end
 
  def change_system_audio(op, value)
    if op == "battle bgm"
      $game_system.battle_bgm=(value)
    elsif op == "end battle me"
      $game_system.battle_end_me=(value)
    end
  end
 
end
$easy_scripts = Easy_Scripts.new
#---------------This doesn't affect the classes--------------------------------#
class Game_Actor < Game_Battler
  attr_accessor :name                    # name
  attr_accessor :character_name          # character graphic filename
  attr_accessor :character_index          # character graphic index
  attr_accessor :weapon_id                # weapon ID
  attr_accessor :armor1_id                # shield ID
  attr_accessor :armor2_id                # helmet ID
  attr_accessor :armor3_id                # body armor ID
  attr_accessor :armor4_id                # accessory ID
  attr_accessor :class_id                # class ID
  attr_accessor :level                    # level
  attr_accessor :exp                      # experience
end
class Game_Player < Game_Character
  attr_accessor :direction
end
class Game_Party < Game_Unit
  attr_accessor :gold
end


______________________________________________________________________________
avatar
Diogo Pegasus
Marechal do CM
Marechal do CM


Mensagens : 1139
Comédia Grana : 5228
Créditos : 20
Humor : O Google é meu pastor e nada me faltará

Ver perfil do usuário http://comediamaker.forumeiro.com

Voltar ao Topo Ir em baixo

Dispondo P***a

Mensagem por chicheater em Seg Jun 27, 2011 10:32 am

vc ta a brincar comigo?
1 - Nao me pedio para postar o meu script aki

2 - Teve a lata de postar o meu script(sem o meu saber) sem ter pelo menos comentado no post real.

3 - E se quizer continuar com este post sugiro que se vá actualizando o meu script ja vai na 3ª versão

e para quem tiver interessado aki ta o verdadeiro post:
LINK AKI

chicheater
Soldado do CM
Soldado do CM

Mensagens : 1
Comédia Grana : 2729
Créditos : 0

Ver perfil do usuário

Voltar ao Topo Ir em baixo

Dispondo Re: Easy Scripts (Script para facilitar o RGSS2)

Mensagem por Ranger Azul em Dom Jul 24, 2011 8:13 pm

HUHAuhasuahauhauahauahau
Depois dessa o diogo nunca mais usa o control C.
avatar
Ranger Azul
Cabo do CM
Cabo do CM

Mensagens : 85
Comédia Grana : 3027
Créditos : 27
Humor : È hora de Morfar

Ver perfil do usuário

Voltar ao Topo Ir em baixo

Dispondo Re: Easy Scripts (Script para facilitar o RGSS2)

Mensagem por Diogo Pegasus em Dom Jul 24, 2011 8:20 pm

chicheater escreveu:vc ta a brincar comigo?
1 - Nao me pedio para postar o meu script aki

2 - Teve a lata de postar o meu script(sem o meu saber) sem ter pelo menos comentado no post real.

3 - E se quizer continuar com este post sugiro que se vá actualizando o meu script ja vai na 3ª versão

e para quem tiver interessado aki ta o verdadeiro post:
LINK AKI


1- Onde peguei esse script nao tinha informaçoes do criador.

2- Depois eu comento no topico orginal.

3-Valeu por me avisar sobre a versao.

______________________________________________________________________________
avatar
Diogo Pegasus
Marechal do CM
Marechal do CM


Mensagens : 1139
Comédia Grana : 5228
Créditos : 20
Humor : O Google é meu pastor e nada me faltará

Ver perfil do usuário http://comediamaker.forumeiro.com

Voltar ao Topo Ir em baixo

Dispondo Re: Easy Scripts (Script para facilitar o RGSS2)

Mensagem por Conteúdo patrocinado


Conteúdo patrocinado


Voltar ao Topo Ir em baixo

Voltar ao Topo

- Tópicos similares

 
Permissão deste fórum:
Você não pode responder aos tópicos neste fórum