- Joined
- Sep 16, 2012
- Messages
- 453
- Reaction score
- 211
- First Language
- English
- Primarily Uses
- RMMV
This will work for displaying the names of switches (Edit and variables) in the order they appear to the console:Hi, I am looking for an option to get the name of variables and switches during runtime, is their a way?
Put this snippet in it's own slot below materials and above main.
Edit: Also can show the hierarchy of maps
class Print_Name def S_Name p "Start of Switches" for i in 1...$data_system.switches.size p "#{i} " + "#{$data_system.switches}" end p "End of Switches" p "" end def V_Name p "Start of Variables" for i in 1...$data_system.variables.size p "#{i} " + "#{$data_system.variables}" end p "End of Variables" p "" end#Thanks to a method in Dr.Yami's Patch script and to Another Fen can show the maps Hierarchy def HM_Name p "Beginning of Map Hierarchy" hash = Hash.new $data_mapinfos.each { |key, value| hash[0] = value p "parent id #{hash[0].parent_id} order #{hash[0].order} name #{hash[0].name}" } p "End of Map Hierarchy" p "" endendMake an event with the script command:
Code:
name = Print_Name.newname.S_Namename.V_Namename.HM_Name
Last edited by a moderator:

