You can get/set properties of an event with the MapEvent object. The MapEvent object requires an index which is the number of the event started by zero (e. g. 0 is the first event on the map, 1 is the second, ...). This index is not the same as the event id used in the RPG-Maker to identfy events. If you want to access a single event using its id you should use the
Event object. If you want to access a special event (this, hero, boat, ship or airship) you can use the
special event constants as index.