What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Idea] XML Tag for random dungeons and misc areas

herbfunk

Community Developer
Joined
Oct 30, 2012
Messages
238
Reaction score
7
I've found it rather hard to implement areas into a profile such as a random dungeon without actually using a new profile, this is due to the reloading of profile on death. I've tried to figure out how to use the IgnoreReset feature efficiently but it becomes very complex when exploring a large area with multiple areas of interest.

So the idea is to use a complex node tag to hold the exploring of the area and during this behavior profiles would not reset on death but instead restart the tag again. This way you could enter a new area and explore it within the tag and exit back into the main area and resume the profile as usual.

It seems simple enough yet I have no idea if it is possible to restart a tag without reloading a profile. If so, then it would be easy enough using a static bool which would be set when the tag starts, and any death would be handle specifically to restart the tag and not the entire profile.

Any help/ideas/examples would be very helpful!
 
You can achieve that by checking if the user is inside the dungeon or not. If it dies and its inside, you can avoid restarting the entire profile. For example:
Code:
<!-- Check if we're already there -->
<If condition="(not Zeta.ZetaDia.CurrentWorldId==121579)">
	<!-- We're not in the zone, move to it -->
	<MoveTo questId="1" ... />
	...
</If>
<!-- We're in the zone 121579, explore it -->
<ExploreArea questId="1" ... />
With the code above, even if you restart the profile, DB won't redo all of the above tags if the user is already on map id 121579.
 
Ahh, Thanks!.. I reviewed my profile and the issue was due to TrinityUseOnce maxing out when dying and not properly exiting the area, I added additional check following the end of the TrinityUseOnce tag to see if I'm still inside the area.

(Late nights cause mind fog!) :)
 
Back
Top