Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

'Creating' events with common events.

Is it possible to create a new event on the map with the use of a common event.
For example.
Using an item with a common event, that spawns an npc who does the action that the common event is set to do.

my situation:
I'm using Mr. Mo's ABS. And attempting to make a sort of beam-attack with one of the Ranged Skills.
When using a ranged skill, it makes an event and that event moves so far then disappear.
Problem is, beams just don't look right if it's just a single characterset.
I'm trying to make a temporary line of 'events' between the beam and the character. (I'm aware of the lag situation, which is why the events wouldn't last so long. Maybe not a direct line from the character to the skill. but at least a small trailing effect on it.)

I tried using the variable trick to make an event appear next to a player. (Setting variables to Map X/Y, +1) and changing the graphic. But it won't appear on the map itself.

That possible?
 
Thanks Seph, this should help ALOT with some of my skills and bosses ideas...along with many MANY other ideas I couldn't seem to pull off.

One question though, that should make things slightly easier for me.
In the creating event part.
( Event_Spawner.create_event(3, 5, 'Sample Event A'))
as taken from your example.

It would appear at '3, 5'
Is there a way to set it to a variable +#?
I'm using variables to record my player's current X/Y, and use that to determine placement of certain events.
Is there a way to set the spawner to use that idea, allowing it to spawn next to the player by adding +1 to the said variable?
Or am I going to have to create a long string of commands for each spawned event to set that variable, add 1 to it, then transfer event to it?
 
I tried to call your preset sample event using Event_Spawner.Presets.sample_event_a

But it results in a 'NoMethodError' in the presets module...?

I also don't understand where i'd put in the $game_variables[variable_id]
in the sample event, if i'd want to use that.

def self.sample_event_a(x = 3, y = 3, save = true)
Event_Spawner.create_event(x, y, 'Sample Event A')
Event_Spawner.set_page_graphic({'c_name' => '002-Fighter02'})
Event_Spawner.add_event_command(101, ['I am a spawned event'])
Event_Spawner.end_event(save)
end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top