Jump to content

Zvart

Member
  • Content Count

    116
  • Joined

  • Last visited

  • Days Won

    5

Zvart last won the day on October 17 2018

Zvart had the most liked content!

2 Followers

About Zvart

  • Rank
    Advanced Member
  • Birthday 10/06/1991

Profile Information

  • Gender
    Female

RPG Maker Information

  • RM Skill -
    Jack of All Trades

Recent Profile Visitors

8,031 profile views

Single Status Update

See all updates by Zvart

  1. I'm suddenly sadly frustrated that I can't find a way to script a Playtest mode that will show me the Map, Event, and Tab currently running so I know where to look for my mistakes.

     

    sad day, best I can do is plug a bunch of variables and hope for the best.

    1. Show previous comments  1 more
    2. Kayzee

      Kayzee

      Are you using VX Ace by any chance? I donno about MV or MZ, but in VX Ace one of the reasons there is no test mode that does this is because the event interpreter doesn't keep track of where the event it is running is coming from. Also events don't actually keep track of the page number they are using.

       

      That said, it's still possible! Here is a little script for VX Ace to print the map/id/page to the console when an event starts (only works for map events though):

       

      Spoiler
      
      if $TEST
      
        class Game_Event < Game_Character
      
          alias_method :start_debug_base, :start
          def start
            pagenum = @event.pages.find_index(@page)
            pagenum += 1 if pagenum
            puts "Event Start - Map: "+@map_id.to_s+" Id: "+@id.to_s+" Page: "+pagenum.to_s
            start_debug_base
          end
        
        end
      
        class Game_Interpreter
        
          alias_method :command_118_debug_base, :command_118
          def command_118
            puts "Event Label - " + @params[0]
            command_118_debug_base
          end
        
          alias_method :command_119_debug_base, :command_119
          def command_119
            puts "Event Label Jump - " + @params[0]
            command_119_debug_base
          end
        
        end
      
      end

       

       

      I wrote it just now! As a extra bonus it also prints stuff when it finds a label or a label jump so you know what the last label used is. Helpful!

       

      Oh yeah, and to enable the console make sure the 'show console' option in the 'game' menu has a little check by it. I find it super useful!

    3. Zvart

      Zvart

      You are wonderful! Thank you.

       

      Mind if I modify it a bit so it works even outside of Playtest mode? I'm thinking about when sending it out to Playtesters, since there's a LOT of dialogue options. Knowing where they found a particular thing would be nice

    4. Kayzee

      Kayzee

      You can do whatever you like with it really... I don't believe in restricting what people can do with my scripts. :3

×