Does GetHero() always give you the PC or does it give you the character you are controlling? For example, if I take control of Alistair, does GetHero() give me the PC or Alistair?
Thanks!
Question about GetHero()
Débuté par
PavelNovotny
, mars 26 2010 12:06
#1
Posté 26 mars 2010 - 12:06
#2
Posté 26 mars 2010 - 12:35
I had a chat about this with Craig Graff a couple of months back according to which ...
GetHero will give you the original character the player "rolled up" during character generation. Of course the "hero" not be the character currently being controlled by the player. Moreover the "hero" may not be the party leader or even in the active party! Fortunately the "hero" is will always be in the party pool.
So in your scenario GetHero would give you the player's original character, GetMainControlled would give you Alistair and GetPartyLeader should give you the player's character unless you've removed him from the active party or used SetPartyLeader to nominate another character.
Note that IsHero will return TRUE for GetHero but while IsControlled will return TRUE for GetMainControlled it will also return TRUE for any other currently selected party member!
Confused?
GetHero will give you the original character the player "rolled up" during character generation. Of course the "hero" not be the character currently being controlled by the player. Moreover the "hero" may not be the party leader or even in the active party! Fortunately the "hero" is will always be in the party pool.
So in your scenario GetHero would give you the player's original character, GetMainControlled would give you Alistair and GetPartyLeader should give you the player's character unless you've removed him from the active party or used SetPartyLeader to nominate another character.
Note that IsHero will return TRUE for GetHero but while IsControlled will return TRUE for GetMainControlled it will also return TRUE for any other currently selected party member!
Confused?
Modifié par Sunjammer, 26 mars 2010 - 01:38 .
#3
Posté 26 mars 2010 - 01:10
Just a little
#4
Posté 26 mars 2010 - 01:17
Sunjammer wrote...
...and GetPartyLeader should give you the player's character you've removed him from the active party...
I assume above means 'unless you've removed him'?
This is good information about GetHero.
#5
Posté 26 mars 2010 - 01:33
Indeed. Glad one of us was paying attention.





Retour en haut







