Author Topic: Script bugs - whut?  (Read 432 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Script bugs - whut?
« on: April 06, 2015, 10:42:02 pm »


               

Okay here is another issue I seem to be having: 


 


I created some scripts and used them in a conversation. Learning that they did not work as I wanted them to work I simply deleted them.


 


So here is the issue: 


 


Now a quest gives my character its faction rep BEFORE I actually finish the quest and on death the mrespawn option does NOT pop up....


 


anyone know how to fix this?



               
               

               
            

Legacy_Terrorble

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Script bugs - whut?
« Reply #1 on: April 07, 2015, 01:06:28 am »


               

In the toolset under Edit|Module Properties|Events tab|OnPlayerDeath it shows the script that runs when a player dies.  It should have something like this to make the respawn screen appear:


 


DelayCommand(2.5, PopUpGUIPanel(oPlayer,GUI_PANEL_PLAYER_DEATH));


 


If it is popping up but without the respawn option, then the code probably says this:


 


DelayCommand(2.5, PopUpGUIPanel(oPlayer,GUI_PANEL_PLAYER_DEATH, FALSE));


 


The FALSE is telling it to not have the respawn option available.


 


 


 


If the quest updates the faction rep before you want it to then something is causing that.  It might be a script attached to a conversation node that you think is gone but isn't.  Beyond that, I can only guess.  I have quests that update from triggers, when you acquire something, when you disturb something, when you defeat something, when you choose a conversation option, when you destroy something, etc.  



               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Script bugs - whut?
« Reply #2 on: April 07, 2015, 06:38:44 am »


               

thank you! And I found the issue here, I accidentally added a line to one of the scripts for the questnodes that gave additional Rep points.....sometimes I feel so foolish XD


 


And the popup did not show cause I was stupid enough to remove the on-death script in the module, so it basically did not know what to do................. *epic facepalm*