03-16-2009, 02:46 PM
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.
Say, if I wanted to type something, as a special comment for an event, like this:
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 55 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?