Events triggered by other events touching each other.

● ARCHIVED · READ-ONLY
Started by GiganteGuerreiro 9 posts View original ↗
  1. Hi guys!
    I need a little help with something.

    As the title says, i'm trying to make an event where the blonde maid asks the player to move some boxes

    to a corner (because they are very heavy, help the girl hero).
    I've got some scripts working that let the player drag/push the boxes around, but i don't know how can i get

    the blonde maid event to thank the player, once all boxes are in any green area.

    How can i make a trigger that recognizes that the boxes are touching the green area spaces?

  2. you can't


    There is no way for events to trigger other events, you need to either check them indirectly or use switches/variables to coordinate events.


    In your case, I think it would be best if every box checks its own position after each move, when it's in the target area it should count a variable up (and down if it leaves the area after that).


    And the girl gets a condition of that variable being three or above, so it will become active after all boxes are in position.
  3. Look for my Sokoban tutorial. I think it'll do exactly what you need here. You're not making the same sort of puzzle, but your "success" condition (THESE events on THOSE tiles) is the same.
  4. Thanks a lot guys!
    I looked at your tutorial Shaz, and i think it is just what i needed.
    I will try to use it right now!
  5. So, i'm almost there but i'm still having a problem.
    The "sucess" message is popping as soon as any one box is on the correct region id.

    Here is a screenshot of the event.
    Below the sucess message i have a Label:Fail created and a Wait: 5 frames, just like you suggest in your (awesome) tutorial.
    Your tutorial is helping me a lot, i just need to fix this and i will be good to go!

  6. Your message is outside any conditional branches. So it always appear.
    You need to check if the events are in the right position and only if so make the message happen, Canalha do Alto.
  7. GiganteGuerreiro , please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


    No Waterguy, that is not the reason. You didn't look at the JUMP statements that cause it to bypass the message.


    You're using a different set of variables for each box's position, but you're only setting the region based on the first set of variables. You don't need one set for box 1, another set for box 2, another for box 3, etc. Just use variable 1 and variable 2 for the x and y position of the box in EVERY test, as the tutorial instructs.
  8. Oh, forgive me about that.
    And you were right Shaz, i did not pay attention to that detail, i just modified the variables

    for every box and it worked just like i wanted!

    Thank you all for helping me, and special thanks to your great tutorial Shaz.
    This topic can be closed, problem solved!
  9. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.