OmegaDev
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Script-edit request

2 posters

Go down

Script-edit request Empty Script-edit request

Post by Xzygon 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
Xzygon
Xzygon
Apprentice
Apprentice

Posts : 135
Gald : 407

http://dualityvx.com

Back to top Go down

Script-edit request Empty Re: Script-edit request

Post by IMP1 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
IMP1
IMP1
Coding Moderator
Coding Moderator

Posts : 503
Gald : 1399

Stats
Cookies: 5

Back to top Go down

Back to top

- Similar topics

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