Just a few more questions since this is my first time programming in HTML (or so i think this is) used to c++.
1- how would i set condition = true for the loop . Do i need to initialize some sort of boolean variable? or do i just say condition = true before i open the While statement.
2- the portals in twilight highlands arent click activated they are walk through activated so how would i make the profile do that? Would i take a hotspot just behind it?
3- how would i make the profile wait for the portal to finish moving the character? or will it automatically wait until the loading screen has gone?
1. "
true" and "
false" are boolean 'constants'... you may use them as is. The documentation for using the Condition attribute is here:
[wiki]Honorbuddy Profile Tag Attribute: Condition[/wiki]
2.
UsePortal behavior has you start at one point, and define another point right in front of the portal.
UsePortal then goes to the first point, and arranges to walk through the point in front of the portal, and keeps going. This should cause you to 'zone'.
If you chose the
MyCTM technique, you indeed select a point inside, or slightly behind the portal. To figure out the correct point, you frequently have to stand in front of the portal, then 'do some math' to see what the next point just inside the portal would be.
With
MyCTM, you don't want to make the point "too far" away. If you do,
MyCTM will think it never arrived, and keep trying to go back to it. There is some kind of 'slop factor' built into
MyCTM to quit trying when its within a certain distance of the destination. This is why
MyCTM can be a bit tricky.
3. This logic is built into
UsePortal.
If you use,
MyCTM, it should be followed by a
WaitTimer behavior for this. Since 'zoning times' differ for everyone based on their CPU and disk access (there are usually a lot of textures loaded from disk during a 'zoning' process), so you'll have to find a happy medium that gets you zoned, but doesn't have everyone standing around for too long. The problem is another reason that
MyCTM is tricky when using portals. When I've used it in the past, I just set a flat
WaitTimer of 60secs and hope it covers most people. I don't recall any complains.
The Wiki is still stale with respect to behavior documentation (too many irons in the fire for me). But, it does have some value, even stale:
[wiki]Category:Honorbuddy CustomBehavior[/wiki]
Most behaviors have 'developer-quality' comments at the top of their files. Your behaviors are located in
<HB_install_dir>/Quest Behaviors. But, believe it or not, even these comments are sometimes stale or just wrong.
I'm slowly working my way through trying to get documentation up to reasonable expectations. I've only made it through the 'E' behaviors so far. Everything after 'E' may have errors or be stale.
Here, are some other resources you may find useful:
[wiki]Profile Writing: Locating IDs for Game World Entities[/wiki]
[wiki]Honorbuddy Profile Writing: Continent ID and Dungeon ID List[/wiki]
[wiki]Profile Writing: Locating X-Y-Z Coordinates for Game World Entities[/wiki]
cheers,
chinajade