Hi guys,
So, I don't know anything about zscript... but I need a script done. XD Here's the problem I'm trying to solve:
There are several different "versions" of the overworld, each with a different dmap. I want to be able to enter a dungeon from any version, then come back to that same version when leaving the dungeon. This means keeping track of which version of the overworld I'm entering from (in this case the triforce counter achieves that) and dynamically changing the side warp dmap target of dungeon screens that lead back to the overworld.
This is what I've come up with, but I can't even get it to load into zquest (giving me an error for the first line!)
import "std.zh" global script TriforceExit // Sets the dmap warp target based on the triforce count { void run() { while(Game->GetCurScreen() == Game->LastEntranceScreen) { itemdata curTriforce = LoadItemData(I_TRIFORCE); int wScreen = Screen->GetSideWarpScreen(0); int wType = Screen->GetSideWarpType(0); Screen->SetSideWarp(0, wScreen, curTriforce.Amount ,wType); Waitframe(); } } }
So, if anyone would be kind enough to write a version that works I'd be very appreciative. Thanks!