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.

Take over event

I'm just started using RPMXP and RPMVX and I can't get a event to run then have another event somewhere else on the map run. ex. I have a NPC that when the player talks to will set something on fire. I have two events one the NPC and the other Fire. how do I get the fire event to activate as the player is talking to the NPC. Sorry if this doesn't make sense.
 
No, I understand what you want, in a general sense.

The thing to remember is that an event doesn't have to just affect things at that event's location. Event coding can move other events, change their graphics, show animations or pictures anywhere on the screen, anything.

One event is enough to do anything, most of the time.

What exactly were you trying to do?
 
Is this what you want?
Code:
 

#Event id 001 NPC

@> Text: NPC: My house is on fire!

@> Control Switches: [001: Fire] = ON

 

#Event id 002 Fire

Condition: Switch [001: Fire] = ON

Show Graphic: Fire

 
I don't really get want you want so...
 
You want to do most of your scene controlling on only one event, so everything's simple and organized. All the other events will only be graphics you want to show.

In that control event (in your example, the NPC you talk to) you can either turn on a switch or use the "Change Graphic" event command to show fire. When you want to put the fire out, turn off that switch or "Change Graphic: None."

After you're done, make sure to use a switch or self-switch so the event won't happen again (unless you want it to). You may want to check some tutorials about it if you're unclear how to use them.
 
Ok I have it like this
Npc
Text: Check this out.
switch: 1 on
wait 40 frames
switch: 1 off
text: Wasn't that cool.

fire
page 1
no grafic
page 2
grafic of fire
condition switch 1 on

I'm missing something because the fire graphic will not appear.
 

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