Aller au contenu

Photo

[Resolved] Follower made with CreateObject has no stamina and incorrect stats


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

#1
Proleric

Proleric
  • Members
  • 2 352 messages
I've made some followers who can be hired in conversation.

Now I'm trying to create an "instant party" for test purposes.

This works up to a point, but the followers have no stamina (or low mana) and inappropriate stats (disabling some abilities).

I've given the player a Unique Power item which uses CreateObject to spawn some followers in the module event EVENT_TYPE_UNIQUE_POWER.

There I set the plot flag which is normally used in conversation to manage hiring (the plot script has been tweaked to set the follower object correctly).

Does anyone have any idea what's wrong?

I can post scripts if it helps, but I suspect the essence of the problem is described above.

This thread describes exactly the same problem (unique power item, CreateObject, no stamina) amongst others, but no solution was found.

Modifié par Proleric1, 23 octobre 2010 - 10:27 .


#2
Proleric

Proleric
  • Members
  • 2 352 messages
The problem is largely resolved by doing the actual hiring in a delayed event.

I'm guessing that CreateObject triggers a spawn event on the creature, which happens after the module event. So, a delay is necessary to make hiring happen after spawning.

Still working on the detail.

#3
Proleric

Proleric
  • Members
  • 2 352 messages
The issue was completely resolved by the delayed event.