Extra Methods

Return to Content Manager Page.

Extra Method List:

dropAnimalAt(mapId, x, y, animalId, animalData)

This method is executed when the player drops an animal they were holding.

If your mod uses any custom animal, you can use this method to create the animal event in the position it was dropped.

You need to return true if the animalId belongs to your mod, or false if it doesn’t.

pickCreature()

This method is called when a small animal was picked up by the player.

No return is expected.

itemIdCanBeStored(itemId)

With this method, you can prevent a specific item from being stored in the backpack.

Return false if you want to prevent an item from being stored, or true for no change.

checkBarDoor()

This method is executed when the player tries to open the door to the old house on the beach. You can use it to trigger a special event if needed.

Return true if you triggered an event, or false otherwise.