RPG Creator : créez votre MMORPG ou RPG sans aucune connaissance en programmation
Disponible le 4 Juin !
- Jouez à votre jeu sur tablettes tactiles, Smartphones et navigateurs Web
- Personnalisez vos menus
- Dessinez facilement et rapidement vos cartes
- Créez des actions pour le combat A-RPG
Une mini-map apparait en haut. On peut crée un objet qui désactive la mini map, car c'est un interrupteur qui l'actionne (le 11) Je vais vous montrer par image...
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ #_/ ◆ MiniMap - KGC_MiniMap ◆ VX ◆ #_/ ◇ Last Update: 2008/09/08 ◇ #_/ ◆ Translation by Mr. Anonymous ◆ #_/ ◆ KGC Site: ◆ #_/ ◆ http://f44.aaa.livedoor.jp/~ytomy/ ◆ #_/ ◆ Translator's Blog: ◆ #_/ ◆ http://mraprojects.wordpress.com ◆ #_/---------------------------------------------------------------------------- #_/ This script creates a "minimap" of the current area and displays it on the #_/ screen. Note that you may disable the MiniMap on a given map by tagging the #_/ map's name with [NOMAP]. #_/============================================================================ #_/ Install: Insert above KGC_SetAttackElement, if applicable. #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
module KGC module MiniMap # ◆ MiniMap Switch ◆ # Here you may assign an in-game switch number to activate/deactivate the map. MINIMAP_SWITCH_ID = 11
# ◆ MiniMap Display Properties ◆ # Here you may specify the X and Y coordinates as well as the width and height # of the MiniMap. # Format: X Coordinate Y Coordinate Width Height MAP_RECT = Rect.new( 364, 20, 160, 120)
# ◆ Map Z Coordinate ◆ # Here you my specify the map's Z coordinate (depth). MAP_Z = 0
# ◆ MiniMap Block Grid Size ◆ # Here you may specify the grid size of the minimap. 3 or more is recommended. GRID_SIZE = 5
# ◆ Current Position Marker Color ◆ # Format: Red, Green, Blue, Grey POSITION_COLOR = Color.new( 255, 0, 0, 192) # ◆ Destination Event Marker Color ◆
# To start this effect, the event must have [MOVE] in its name. # Format: Red, Green, Blue, Grey MOVE_EVENT_COLOR = Color.new( 255, 160, 0, 192)
# ◆ Custom Objects Colors ◆ # Here you may specify different colors for different types of object markers. # For example, you may have NPCs labeled [OBJ 1] in the event's name, while # monsters labeled at [OBJ 2] and so forth. # Please note that it's possible to add more, after OBJ 3. Just stick with # the format: Color.new(0, 0, 0, 192), # [OBJ 4] OBJECT_COLOR = [ # Format: Red, Green, Blue, Grey Color.new( 0, 160, 0, 192), # [OBJ 1] Color.new( 0, 160, 160, 192), # [OBJ 2] Color.new(160, 0, 160, 192), # [OBJ 3] # Insert additional objects here.
] # <- Do not remove!
# ◆ Position Marker Blinking Strength ◆ # Here you may specify how frequently the positional market blinks. # A range of 5 to 8 is recommended. BLINK_LEVEL = 7 end end
#=============================================================================# # ★ End Customization ★ # #=============================================================================#
module KGC module Commands module_function #-------------------------------------------------------------------------- # ○ Show the MiniMap #-------------------------------------------------------------------------- def show_minimap $game_system.minimap_show = true end #-------------------------------------------------------------------------- # ○ Hide the MiniMap #-------------------------------------------------------------------------- def hide_minimap $game_system.minimap_show = false end end end
#=================================================# # INCLUDE COMMANDS # #=================================================# # Include KGC::Commands in Game_Interpreter # #=================================================#
class Game_System #-------------------------------------------------------------------------- # ○ ミニマップ表示フラグ取得 #-------------------------------------------------------------------------- def minimap_show return $game_switches[KGC::MiniMap::MINIMAP_SWITCH_ID] end #-------------------------------------------------------------------------- # ○ ミニマップ表示フラグ変更 #-------------------------------------------------------------------------- def minimap_show=(value) $game_switches[KGC::MiniMap::MINIMAP_SWITCH_ID] = value end end
class Game_Map #-------------------------------------------------------------------------- # ○ ミニマップを表示するか #-------------------------------------------------------------------------- def minimap_show? return $data_mapinfos[map_id].minimap_show? end end
class Game_Event < Game_Character #-------------------------------------------------------------------------- # ○ イベント名 #-------------------------------------------------------------------------- def name return @event.name end end
Utilisateurs parcourant actuellement ce forum : Aucun utilisateur inscrit et 2 invités
Vous ne pouvez pas publier de nouveaux sujets dans ce forum Vous ne pouvez pas répondre aux sujets dans ce forum Vous ne pouvez pas éditer vos messages dans ce forum Vous ne pouvez pas supprimer vos messages dans ce forum Vous ne pouvez pas insérer de pièces jointes dans ce forum