Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: edwardthefma on September 16, 2009, 02:04:59 pm

Title: need som help with making a script command for rmx-os
Post by: edwardthefma on September 16, 2009, 02:04:59 pm
 alias check_normal_commands_teleport check_normal_commands
    def check_normal_commands(message)
    if message == '/town'
     $game_temp.player_transferring = true
     $game_temp.player_new_map_id = 10
     $game_temp.player_new_x = 10
     $game_temp.player_new_y = 9
     $game_temp.player_new_direction = 0
     $scene = Scene_Map.new
     $game_map.autoplay
    return true
    end
  return check_normal_commands_teleport(message)
    end
    #------------

now i want to make this script so it checks for a item
if you dont have at
least 1 of the item so it dose nothing
and if you do have the item it removes 1
Title: Re: need som help with making a script command for rmx-os
Post by: Aqua on September 16, 2009, 04:31:34 pm
Just add a conditional to check if the player has an item then subtract it? XD

$game_party... I don't remember the exact method >.>

Just look in $game_party