PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [DynRPG Plugin]Minimap Plugin



Kazesui
24.02.2013, 01:16
http://rpgmaker.net/media/content/users/3355/locker/Minimap.png

Hab wieder ein bisschen gebastelt und diesmal ein minimap Plugin gemacht. Der Plugin lässt euch ganz einfach minimaps für euer maps machen lassen
mit ein paar Comment befehle.

Direkt aus dem readme geholt (achtung, englisch)



This plugin will generate minimaps with "targets" moving
on it, corresponding to actions on the real map.
For this plugin to work, you will have to install the
DynRPG patch. Once this is done, add the DynMap.dll to the
DynPlugins folder.

Once this is done, you'll be able to perform actions by
comment commands. A comment command can look like this:

@set_target_link "link_variable", 2, V4

set_target_link is the command, while "link_variable", 2
and V4 are parameters. Worth noticing here is V4 which
refers to the value stored in variable 4.

Some of the comment commands allow for colors as
parameters. The table below gives which colors can be
given as text, rather than numerical values.

Colors
-------------------------

- red
- green
- blue
- cyan
- yellow
- magenta
- black
- white

The comment commands:
-------------------------

@make_minimap
no paraemeters

- creates a minimap for the current map

@make_target
parameter#1: nametag for target (text)

- creates a new target to be displayed on the minimap

@set_target_color
parameter#1: nametag of target (text)
parameter#2: color from colortable (text)

@set_target_color
parameter#1: nametag of target (text)
parameter#2: red component from 0 to 255 (numeric)
parameter#3: green component from 0 to 255 (numeric)
parameter#4: blue component from 0 to 255 (numeric)

- Assigns a color to the target either from text
or from giving the explicit color in rgb format.

@set_target_link
parameter#1 nametag of target (text)
parameter#2 set type of link (text, see below)
parameter#3 ID or x component (numeric)
parameter#4 y component (numeric)

- links target to a set of coordinates, specified by
it's type. The possible types to chose from are
link_coordinate = set target to given position
link_variable = x and y parameters give the id
of the variables to be used for
the coordinates.
link_id = links the coordinates of the target to
an event with id equal to the id
id parameter.

examples:
@set_target_link "test", "link_id", 4
@set_target_link "test", "link_variable", 1, 2

@set_alpha
parameter#1 alpha value (0-255, numeric)

- sets transparency of the minimap. 0 is entirely
transparent. 255 is entirely opaque.

@set_position
parameter#1 x position (numeric)
parameter#2 y position (numeric)

- sets the upper left corner of the minimap in
screen relative coordinates.

@set_size
parameter#1 width (numeric)
parameter#2 height (numeric)

- sets the size of the minimap in tiles. every tile
is given 2x2 pixels on the minimap, meaning a 20,15
sized minimap will take 40x30 pixels.

@set_map_color
parameter#1 color1 (color from table, text)
parameter#2 color2 (color from table, text)

@set_map_color
parameter#1 color1 red (0-255, numeric)
parameter#2 color1 green (0-255, numeric)
parameter#3 color1 blue (0-255, numeric)
parameter#4 color2 red (0-255, numeric)
parameter#5 color2 green (0-255, numeric)
parameter#6 color2 blue (0-255, numeric)

- sets the colors of the minimap, either by giving
the colors from the table in text format, or by
explicitely giving the rgb components of both
colours.

@is_minimap
parameter#1 id of switch (numeric)

- returns on or off to a switch of choice, telling
whether there's currently an active minimap.
the minimap doesn't get saved when you quit the game
so this is a good way of manually restoring the
minimap upon loading the game.

@destroy_target
parameter#1 nametag of target (text)

- removes a target from the minimap

@destroy_minimap
no parameters

- destroys the minimap, and all targets on it.



Der plugin download findet ihr hier:download (http://rpgmaker.net/engines/rt2k3/utilities/19/)
und hier gibts auch noch den plugin source (http://rpgmaker.net/users/Kazesui/locker/DynMapSource.zip), diesmal etwas grausamer als sonst.
viel spaß damit.

TwoFace
24.02.2013, 02:08
Klingt nach einem Geschenk für mich (http://www.multimediaxis.de/threads/137606-Minimaps-in-Spielen) :D

Ich schau mal ob ich damit zurecht komme. Habe DynRPG noch nie zuvor verwendet. Was muss ich beachten?

goldenroy
24.02.2013, 13:19
Klingt nach einem Geschenk für mich (http://www.multimediaxis.de/threads/137606-Minimaps-in-Spielen) :D

Ich schau mal ob ich damit zurecht komme. Habe DynRPG noch nie zuvor verwendet. Was muss ich beachten?

- Die RPG_RT.exe wird gepatched; daher ist es ratsam, zuerst DynRPG, und danach etwaige andere Patches (wie NoRow, BetterAEP, PicPointer, PicsInBattle, so ziemlich alles was die RPG_RT patcht) zu installieren
- Es erstellt einen neuen Ordner im Spieleverzeichnis
- Ich meine man muss seine erlaubte Pictureanzahl höher stellen (siehe >>hier<< (http://rpg-maker.cherrytree.at/dynrpg/patch.html), ab "About the Pictures")
- Alle Befehle werden durch die Kommentarfunktion ausgeführt
- Viele, viele Bugfixes (siehe >>hier<< (http://rpg-maker.cherrytree.at/dynrpg/patch.html), ab "Extra Features")
- Man installiert Plugins, indem man die entsprechende .dll in den erstellten Ordner (DynPlugins) packt

Joa, ich glaub das wars. c:
Achja, Download gibts >>hier<< (http://rpg-maker.cherrytree.at/dynrpg/index.html).

Kazesui
24.02.2013, 20:48
Wieder mal ein kleines bisschen zu schnell Gepostet. Hatte kurz das übere Ebene vergessen.
Download in OP soll jetzt den neusten version geben, der auch das übere Ebene berücksichtigt

Corti
26.02.2013, 19:25
Das Beispiel funktioniert bei mir nicht. Ich bekomme Fehlermeldungen, dass system4, system2c etc. fehlen. reinkopieren der RTP Files in Verzeichnis hilft nicht.

Kazesui
27.02.2013, 11:03
Auch wenn du versuchst das Projekt im Maker zu öffnen? Es sollte eigentlich funktionieren sofern du den RTP hast

Corti
27.02.2013, 12:26
Okey meine RTP Installation war Mist. Runterschmeissen und neu machen hilft. Sry for the inconvenience.

Kazesui
03.02.2014, 10:43
Anscheinend war der Link tot. Wurde jetzt gefixt.

Davy Jones
13.07.2014, 14:37
- Mich würde noch interessieren, ob man den Upperlayer der Map anzeigen kann.
- Lässt sich die Minimap auch unter Messagebox, Text und Pictures verbergen?

Edit:
Überflüssige Fragen rauseditiert, hab mittlerweile rausgefunden dass ich für die random laufenden NPCs die ID aus dem Event-Editor nehmen muss (und nicht den Namen, den man dem Event gibt).