Menu

Connexion



Retenir ?

Mot de passe oublié ?
Eclipso logo
Merry Christmas !
06/06/2020 12:46:35

OH MY DAYUM - daym drops

[Résolu] stocker les notes des maps

Zouzaka

Elite
Zouzaka
  • Messages : 616

[Résolu] stocker les notes des maps


jeu. 06 févr. 2014 - 11h59

bonjours, j’aimerais savoir comment stocker les notes d'une map X dans une variable, dans le fichier d'aide y a ca :

Spoiler

RPG::Map
The data class for maps.

Superclass
Object
Attributes
display_name
The map's display name.

tileset_id
The map's tile set.

width
The map's width.

height
The map's height.

scroll_type
The scroll type (0: No Loop, 1: Vertical Loop, 2: Horizontal Loop, 3: Both Loop).

specify_battleback
The truth value indicating whether the battle background specification is enabled.

battleback1_name
The file name of the floor graphic if the battle background specification is enabled.

battleback2_name
The file name of the wall graphic if the battle background specification is enabled.

autoplay_bgm
The truth value indicating whether BGM autoswitching is enabled.

bgm
The name of that BGM (RPG::BGM) if BGM autoswitching is enabled.

autoplay_bgs
The truth value indicating whether BGS autoswitching is enabled.

bgs
The name of that BGS (RPG::BGS) if BGS autoswitching is enabled.

disable_dashing
The truth value of the [Disable Dashing] option.

encounter_list
An encounter list. A RPG::Map::Encounter ID array.

encounter_step
The average number of steps between encounters.

parallax_name
The file name of the parallax background's graphic.

parallax_loop_x
The truth value of the [Loop Horizontal] option for the parallax background.

parallax_loop_y
The truth value of the [Loop Vertical] option for the parallax background.

parallax_sx
The automatic x-axis scrolling speed for the parallax background.

parallax_sy
The automatic y-axis scrolling speed for the parallax background.

parallax_show
The truth value of the [Show in the Editor] option for the parallax background.

note
The text of the note.


data
The map data. A 3-dimensional tile ID array (Table).

events
Map events. A hash that represents RPG::Event instances as values, using event IDs as the keys.


mais j'y comprend rien

Kanapaiche

Novice
Kanapaiche
  • Messages : 38

[Résolu] stocker les notes des maps


jeu. 06 févr. 2014 - 19h46

Par exemple :


map = load_data(sprintf("Data/Map%03d.rvdata2", ID_DE_LA_MAP))
notes_de_la_carte = map.note


Pour ajouter des informations, tu peux te servir de ce script
https://github.com/nukiFW/RPGMaker/tree/master/ExtensionNotes#r%C3%A9cuperer-la-valeur-des-tags

Zouzaka

Elite
Zouzaka
  • Messages : 616

[Résolu] stocker les notes des maps


jeu. 06 févr. 2014 - 20h05

Merci beaucoup ! ^^