Go Back   The PokéCommunity Forums > UnderMybrella
Reload this Page Conversation Between UnderMybrella and Maruno

For all updates, view the main page.

Conversation Between UnderMybrella and Maruno
Showing Visitor Messages 1 to 2 of 2
  1. Maruno
    July 13th, 2013 6:32 AM
    There are two parts to an event in-game. The first part is the mechanics, which is basically everything you can see in map-making (pages, event commands, move routes, conditions, etc.). The second part is a sprite which shows the event. RPG::Event.new(x,y) only creates the first part, so of course you're not going to see it.

    As I've mentioned previously, looking at how dependent events work is a good start to being able to spontaneously create events. Making an event follow the player will erase that event and spontaneously create a copy of it which follows the player.

    Have a look in def createEvent. The first line in there creates the RPG::Event.new thing, while the rest of it creates Game_Event.new and puts the RPG::Event into it (it becomes one part of a Game_Event, which has a sprite and all that jazz). Basically, copy all this, remembering to put in some properties otherwise it'll be a blank event at 0,0 and you won't be able to tell if it worked.

    Your task would be to keep track of your new events, and to create them using some hardcoded properties (e.g. make them move randomly) and some other properties (e.g. species, character_name); this is different to how dependent events do it, as they simply inherit all these properties (eventData) from their original event.
  2. UnderMybrella
    July 12th, 2013 3:44 PM
    Maruno, just out of curiosity, for the PMD starter kit, I've looked into RPG::Event.new, but there's only one problem - The event doesn't seem to have loaded onto the current map...
    Which makes me assume that I need to modify the current RPG::Map instance. Any idea how to do that?

All times are UTC -8. The time now is 1:41 AM.