Anyone know if it's possible to jump non-party creatures between areas? I've looked at the methods like DoAreaTransition() and such, but they seem to just be for party members. And, a normal function, like CommandJumpToObject() only seems to work for same area jumps.
I can easily just have multiple instances of said creature in each area with the area tag as the prefix/suffix to distinguish them. Just wanted to make sure I wasn't missing anything.
Thanks.
Transition Non-Party Creatures?
Débuté par
Challseus
, févr. 21 2010 11:46
#1
Posté 21 février 2010 - 11:46
#2
Posté 22 février 2010 - 05:41
The most frequently encountered problem on this topic seems to be that only areas in the current area list plus the stage area are loaded into memory and therefore alterable. Are your areas fulfilling this? I have no practical experience with this but I was going to do this, too, in the future. If it's really a non-follower problem, there's at least the workaround to make them followers temporarily.
#3
Posté 22 février 2010 - 06:17
Yeah, I don't think you can move things around like that. There's just multiple copies of characters around the place that are set active/inactive depending on plot flags.
#4
Posté 22 février 2010 - 09:02
The standard way to do this is have the creature placed in each area they appear in and then us the PRELOADEXIT event on the area script to set them active and inactive.
That said, if you need to hack around this for some reason, it is possible to use SetLocation within the same area list, or temporarily add the creature to the party when transitioning, then remove them when the area has loaded. Alternately, you can use SetLocation (twice for some bizzare reason) to move the creature (or placeable or store or whatever) to the stage area (char_stage) before transitioning and then retrieve it on arrival.
That said, if you need to hack around this for some reason, it is possible to use SetLocation within the same area list, or temporarily add the creature to the party when transitioning, then remove them when the area has loaded. Alternately, you can use SetLocation (twice for some bizzare reason) to move the creature (or placeable or store or whatever) to the stage area (char_stage) before transitioning and then retrieve it on arrival.
#5
Posté 22 février 2010 - 09:23
Yeah, the areas are in the same area list. Actually, making them temporary followers is a really good suggestion. I may try that when I get home from work tonight.
Modifié par Challseus, 22 février 2010 - 09:25 .
#6
Posté 23 février 2010 - 03:39
If they are in the same area list you can just use SetLocation - no need to add them to the party.
#7
Posté 23 février 2010 - 04:11
Craig Graff wrote...
If they are in the same area list you can just use SetLocation - no need to add them to the party.
That's even better. Thanks!
#8
Posté 23 février 2010 - 07:58
Excellent. I like the idea of moving creatures between areas instead of copying them. It adds to immersion for the builder.





Retour en haut







