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.

Event help

What I need is this, I have an event set up to event touch and what I want is the event to only trigger if a certain item is in the party possession, say a potion or map.  And this event I want it to only trigger once, the first time the char walks over it.  I set up control self switch A on page 1 and clicked self switch A under conditions on page 2 but the event does not trigger. The item given on page 1 I did with condition branch has Item: map.  Any ideas of what I am doing wrong?
Any help much appreciated.
 
you want it set to player touch, not event touch... the event touch command activates when one event runs into another. The player touch command activates when the player runs into it.

Hope this helps!
~xgamexfreakx
 
I didn't understand what you said you were doing, so I'll just tell you how to do it from scratch:
set it in player touch:
Conditional Branch: switch Muffins! is on
  This thingy can only be triggered once!
else:
Conditional branch: player has item
do W\E you want
turn switch Muffins! on
else
you don't have the item!
 
xgamexfreakx":1qm63rnq said:
you want it set to player touch, not event touch... the event touch command activates when one event runs into another. The player touch command activates when the player runs into it.

I'm sorry, but that's incorrect.  Event touch activates when the event touches the player.  Player touch activates whenever the player tries to move onto the event.
 
If you're still having trouble with it here's a working example:
http://img396.imageshack.us/img396/3894/eventzn4.png[/img]

This will only trigger the commands you want whenever the player has a map and then does not trigger them anymore. I think that's what you wanted to do.
 
That would work, but it's unnecessarily complicated.

It's pretty simple.  Add a second page.  Second page doesn't do anything.  Second page has Page Condition:  Self Switch A is ON.

Add the command to turn Self Switch A ON to the end of the first page.

Profit.
 
Great!  Thanks PeteD2s, that worked perfectly and it was exactly what I was working for.
Thanks for your advice as well Unka Josh.
Thanks so much.
1 problem down, only 9,999,999 left to go! LOL
I really appreciate your help.
 
Unka Josh":2v0ae1u6 said:
xgamexfreakx":2v0ae1u6 said:
you want it set to player touch, not event touch... the event touch command activates when one event runs into another. The player touch command activates when the player runs into it.

I'm sorry, but that's incorrect.  Event touch activates when the event touches the player.  Player touch activates whenever the player tries to move onto the event.

Really?? Huh. Well, I thought that was how it was. Thanks for the correction there though!
 

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