Yanfly Doodads - script calls bug?

● ARCHIVED · READ-ONLY
Started by harvvvvv 3 posts View original ↗
  1. I'm trying to use Doodads so they change when an event is activated. I currently have an event that does this -

    Code:
    $dataDoodads[001][001].bitmap = "card2"
    DoodadManager.refresh ()

    So, when you activate the event, the first doodad (001) on mapID 001 will change to 'card2.png'.
    This works fine. My issue happens when I go into the doodad menu. While I have this event on the map and add a new doodad, the doodad takes the form of 'card2'. If I delete it, the next doodad on the list turns into 'card2', until I have to remove all the doodads on the map.

    Has anyone came across this before?
    Also - does anyone know any other script calls for Doodads that might be useful? One that simply removes a doodad (or hides it) would be great.
  2. I can't tell about your problem, but in your example code you have another mistake:
    NEVER start IDs with the leading zeroes when in an programming area.
    it's $dataDodads[1][1].bitmap
    test again with that (that might already be the cause, but I doubt that it is - but it would cause other problems sooner or later.
  3. Thanks for the tip. I'll see if that makes a difference!