Call Script error

● ARCHIVED · READ-ONLY
Started by Nacura 10 posts View original ↗
  1. Hello good afternoon

    I have a small problem with Script Call, and what I need to do a verification:

    $gameMap.event(Roca).x === $gameMap.event(this._Activador).x && $gameMap.event(Roca).y === $gameMap.event(this._Activador).y

    It is like this only that instead of the player is another event, what you do is a verification that if the event (Rock) is equal to the position (activator), when I move the rock and put it on the activator it opens the door, but do not take me tells me error.

    If you could help me, thank you.
  2. ......and what is the error?
    you're showing the script.
  3. gstv87 said:
    ......and what is the error?
    you're showing the script.

    What I need to do to verify the X and Y of the event if they are equal, is similar to this script:

    $gameMap.event(this._eventId).x === $gamePlayer.x && $gameMap.event(this._eventId).y === $gamePlayer.y

    But instead of the Player that is the Event.
  4. Nacura said:
    do not take me tells me error

    What is the error it is telling you?

    What is Roca and what is this._Activador? You need to use the event id, not the name.
  5. Shaz said:
    What is the error it is telling you?


    What is Roca and what is this._Activador? You need to use the event id, not the name.

    but when I put the Script:}
    $gameMap.event(this._eventId).x === $gamePlayer.x && $gameMap.event(this._eventId).y === $gamePlayer.y

    I do not get that error, since the console generates error in all the plugins that I have.

    Instead of playing, which is the event, the event (Activator) is in Parallel mode, so when you put the event (Rock) on the event (Activator) it will open the door.

    * The names that are in (), are the names of the events.

    ----

    I put the event Id but it still gives me the same error:
    $gameMap.event(this._10).x === $gameMap.event(this._9).x && $gameMap.event(this._10).y === $game_Map.event(this.9).y
  6. I already solved it, now it worked for me, just thank you very much, if you can close the Thread

    $gameMap.event(10).x == $gameMap.event(9).x && $gameMap.event(10).y == $gameMap.event(9).y
  7. Nacura said:
    $gameMap.event(this._10).x === $gameMap.event(this._9).x && $gameMap.event(this._10).y === $game_Map.event(this.9).y
    When you're this inconsistent in the script, no wonder.
    I've seen $game_Map.event from you, I've seen $game_map and even $gameMap. However, only the $gameMap is correct.

    And the event ID is not this._10, but just 10.

    EDIT: Well, too late xD
  8. Please report the first post in the thread and ask for it to be closed.
  9. Thanks :D
  10. [closed]IgnoreMe[/closed]