• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Triggering an event when using an item

  • 6
    Posts
    9
    Years
    • Seen Jun 22, 2016
    Hey guys is there a way to make it so when you use an item in a particular map it triggers a event in that map
     
    Items to trigger switches

    Hey guys i am trying to get the item the Eon Flute to turn on a game switch

    but when i use it nothing happens i dont get any errors but the event that the game switch is connected to doesn't do nothing
    Heres what i have for the item and the event that i use

    can someone please help me


    ItemHandlers::UseInField.add(:EONFLUTE,proc{|item|
    if isOutside?
    $game_switches[101] = true
    elsif !ifOutside?
    blabla
    end
    next 2
    })


    this is what i have i dont get any errors but when i setup the event with that switch id nothing happens

    i am just trying to get it to teleport me



    my event has


    Conditions
    [X] Switch 101: is on
    [ ] Switch is on
    [ ] Variable is on
    [ ] Self Switch is on



    trigger - auto run


    list of events


    transfer player
     
    If you trying to transfer the event to the player. Then you need the following.
    [PokeCommunity.com] Triggering an event when using an item

    [PokeCommunity.com] Triggering an event when using an item
     
    No i am trying to get the item to trigger a switch that would set off a event that would transfer a player to somewhere else

    [PokeCommunity.com] Triggering an event when using an item

    When i use the item nothing happens
     
    Last edited by a moderator:
    how would i do that
    just by putting some text in or something

    no i dont think it does
     
    Last edited by a moderator:
    Back
    Top