Aller au contenu

Photo

Transition Non-Party Creatures?


  • Veuillez vous connecter pour répondre
7 réponses à ce sujet

#1
Challseus

Challseus
  • Members
  • 1 032 messages
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.

#2
Magic

Magic
  • Members
  • 187 messages
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
Bibdy

Bibdy
  • Members
  • 1 455 messages
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
Craig Graff

Craig Graff
  • Members
  • 608 messages
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.

#5
Challseus

Challseus
  • Members
  • 1 032 messages
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
Craig Graff

Craig Graff
  • Members
  • 608 messages
If they are in the same area list you can just use SetLocation - no need to add them to the party.

#7
Challseus

Challseus
  • Members
  • 1 032 messages

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
Magic

Magic
  • Members
  • 187 messages
Excellent. I like the idea of moving creatures between areas instead of copying them. It adds to immersion for the builder. :lol: