Script-edit request

Go down

Script-edit request

Post by Xzygon on Wed Jul 21, 2010 3:04 pm

What I was trying to do all last night unsuccessfully, is edit Woratana's MiniMap script to turn on and off by pressing M. Through every method I tried, which of course turned out unsuccessful, would freeze the minimap, as in it would not show my character moving around the minimap, and would not turn off nor on.

Could someone take the trouble of editting this stupid script for me to turn on and off at the press of a button?


The script can be found here : http://www.rpgrevolution.com/forums/index.php?showtopic=17207&hl=Minimap
avatar
Xzygon
Apprentice
Apprentice

Posts : 135
Gald : 407

View user profile http://dualityvx.com

Back to top Go down

Re: Script-edit request

Post by IMP1 on Wed Jul 21, 2010 6:39 pm

This has been solved, as far as I know, by changing
Code:
class Spriteset_Map
  def update
    if !@minimap.nil?
      if $game_system.show_minimap
        @minimap.visible = true
        @minimap.update
      else
        @minimap.visible = false
      end
    end
    wora_minimap_sprsetmap_upd
  end
end
to
Code:
class Spriteset_Map
  def update
    if Input.trigger?(Input::Y)
      $game_switches[MiniMap::SWITCH_NO_MINIMAP] = !$game_switches[MiniMap::SWITCH_NO_MINIMAP]
    end
    if !@minimap.nil?
      if $game_system.show_minimap
        @minimap.visible = true
        @minimap.update
      else
        @minimap.visible = false
      end
    end
    wora_minimap_sprsetmap_upd
  end
end

__________________________________
Code:
"haystack".scan(/needle/)
avatar
IMP1
Coding Moderator
Coding Moderator

Posts : 503
Gald : 1399

Stats
Cookies: 5

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum