Hello, Vanilla here. I am the one who made the “A Plant’s Life” generator.

There is an issue in this generator where you have to click the “Who’s my gardener?” text, “Cool!” text, and the “Approve” button twice in order to make the brown box with text appear. This is strange, because there is a generator with the similar code that this generator is inspired by, and that generator doesn’t have a similar issue. When you click the “Continue” button after choosing a deputy and medicine cat, it will show you a box with an image and white text in it, along with the clan event log, instead of having the annoying issue where you have to choose deputy and medicine cats and click the “Continue” button again.

I am not sure if this is a bug, but I find this strange, because of the other generator. Can anybody please provide the code/feedback to fix that for me? Thanks.

  • VioneTM
    link
    English
    14 days ago

    This button:

    <button onclick="update(), click++">Approve</button>
    

    You should set the variables first before the update() e.g.

    <button onclick="click++, update()">Approve</button>