And I see at least two unimplemented faction and dialogue related script instructions:
GetPCRank
ForceGreeting
Factions
Re: Factions
I don't know how to implement this kind of instruction:
"telvanni sharpshooter"->GetPCRank
from http://www.uesp.net/wiki/Tes3Mod:GetPCRank
"telvanni sharpshooter"->GetPCRank
from http://www.uesp.net/wiki/Tes3Mod:GetPCRank
Re: Factions
You mean the -> part? See my fixes to your ModDisposition function. Or any other function/instruction of this type.
Re: Factions
I implemented getPCRank as you suggested, but it does not work. For example if I type GetPCRank "whatever" in the console i get a "no implicit reference". The same goes for ModDisposition.
Re: Factions
Working as intended. To use an implicit reference (i.e. not the -> form) the instruction must be called from a script that is associated with a MW-reference (i.e. a local script).
Re: Factions
So the function getPcRank works?
Because if I type in the console "player->getPCRank" i get "stack underflow".
Because if I type in the console "player->getPCRank" i get "stack underflow".
Re: Factions
Then your coding for getPCRank is wrong.
Edit: Too many pops. In the second line of execute you pop the first argument (which may not even exist) and then discard it.
Edit: Too many pops. In the second line of execute you pop the first argument (which may not even exist) and then discard it.
Re: Factions
Corrected thanks!
ForceGreeting seems a little tricky as it force dialogue with an NPC, but the NPC doesn't have to be in the same cell than the player...
ForceGreeting seems a little tricky as it force dialogue with an NPC, but the NPC doesn't have to be in the same cell than the player...
Re: Factions
The dialogue system need a ptr of the actor, but if the actor is not in the same cell, it's possible (i believe) that the ptr is not stored by MWWorld right?