- 1,189
- Posts
- 11
- Years
- Omnipresence
- Seen Aug 8, 2023
How does one create a new event from the script editor? I tried using Game_Event.new, but that seems like it requires that event number to exist on the map's data, unless I'm doing it wrong.
In the long run I intend to create this event, change it's graphic, give it an action to do when the player touches it, and remove itself afterwards. Creating it is obviously the first step though, but I really don't see any examples or documentation so I'm not really sure.
Code:
#$SearchingMap is the map's id
$SpecialEvent=Game_Event.new($SearchingMap,$game_map.events.keys.length+1,$game_map)
In the long run I intend to create this event, change it's graphic, give it an action to do when the player touches it, and remove itself afterwards. Creating it is obviously the first step though, but I really don't see any examples or documentation so I'm not really sure.