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.

Get event ID

I'm using the Event Spawner and to make a long story short, I want a way to grab an event's ID using a script. I feel like there's probably a simple answer, but so far I can't figure it out.
 
He didn't make the Event Spawner. SephirothSpawn did. I think you could check its ID by using:

class Game_Event
attr_reader :event
end

and doing 'self.event.id' in a script or event.

Like(in an event):
@>Script: ddd = self.event.id
@>Conditions: Script: self.event.id == 5
@>@>Show Text: I like the number 6!
@>Branch End

Or(in a script):

ev = $game_map.events[rand(32)]
p ev.event.id
 
well, i quite don't get it, what you want, you want to get the id of events that are not created with the normal editor but the event spawner, is this right?

hmm, thats a bit complicated, if you don't know the id it normally should be spcificated in other ways to be distinguishable... do you have names, or other characterization? i don't know seph's spawner...
 

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