Special Comments
#1
Okay, need a bit of help on this. You know those totally special comments which would affect the game if it said something in particular? (Like Wora's sprite mover or Kylock's Light Effects)

Here's what one of those special comments codes would look like.
Snippet of code taken from Kylock's Light Effects and I changed some things up.
Code:
for a in $game_map.events.values
      next if a.list == nil
      for i in 0...a.list.size
        if a.list[i].code == 108 and a.list[i].parameters == ["Something"]
        # something happens here
        end
      end
    end

Say, if I wanted to type something, as a special comment for an event, like this:
Quote:Something 5
5 being any number you could put in and that number somehow affecting a particular event, what changes would I have to make in the code?
Reply }


Messages In This Thread
Special Comments - by PK8 - 03-16-2009, 02:46 PM
Special Comments - by Charlie Fleed - 03-16-2009, 03:27 PM
Special Comments - by PK8 - 03-17-2009, 05:58 AM
Special Comments - by Charlie Fleed - 03-17-2009, 01:54 PM
Special Comments - by PK8 - 03-17-2009, 07:49 PM
Special Comments - by Charlie Fleed - 03-18-2009, 03:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Special Items Separate Menu Diorm 41 42,459 02-10-2018, 06:06 PM
Last Post: Diorm



Users browsing this thread: 3 Guest(s)