It looks like you're new here. If you want to get involved, click one of these buttons!
<span id="stats"><<display statspage>></span> <span id="event"><<display forestevent>></span> <<click "Explore Again">><<replace "#event">><<display forestevent>><</replace>><<replace "#stats">><<display statspage>><</replace>><</click>> [[navigate]] [[debug]]When this area is entered, it displays the stats at the top of the page (which is where i want them) and then causes a random event to happen. Unfortunately, the stats are before the event, and the event changes the stats, thus outdating them immediately. I have tried sticking a <<replace "#stats">><<display statspage>><</replace> in multiple locations, but it keeps telling me it is unable to find #stats.
Comments
The reason it works when you place it within a <<click>> or <<button>> macro is because by the time the player is able to click on them, the target elements are on the page.
Try placing something like the following in the PassageDone special passage: Also, note that I quoted the name of the passage there—you should be too.