From: <ze...@us...> - 2009-03-22 18:29:14
|
Revision: 5821 http://gemrb.svn.sourceforge.net/gemrb/?rev=5821&view=rev Author: zefklop Date: 2009-03-22 18:29:04 +0000 (Sun, 22 Mar 2009) Log Message: ----------- Initiate dialog when leaving party. Hopefully, this is the last one. (for BG1 at least) Modified Paths: -------------- gemrb/trunk/gemrb/GUIScripts/bg1/GUIWORLD.py Modified: gemrb/trunk/gemrb/GUIScripts/bg1/GUIWORLD.py =================================================================== --- gemrb/trunk/gemrb/GUIScripts/bg1/GUIWORLD.py 2009-03-22 18:09:07 UTC (rev 5820) +++ gemrb/trunk/gemrb/GUIScripts/bg1/GUIWORLD.py 2009-03-22 18:29:04 UTC (rev 5821) @@ -389,7 +389,10 @@ hideflag = GemRB.HideGUI () if hideflag: GemRB.UnhideGUI () - GemRB.LeaveParty (GemRB.GetVar("Selected") ) + slot = GemRB.GetVar("Selected") + if GemRB.GetPlayerStat(slot, IE_HITPOINTS) > 0: + GemRB.ExecuteString("Dialogue([PC])", slot) + GemRB.LeaveParty (slot ) OpenReformPartyWindow () return This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |