Two problems - Papyrus bugs ?

Post » Tue Mar 26, 2013 3:38 pm

Hi,

1/ I have these lines in a (long) script :


if WantToCaptureLylvieve == true  Capture0("Lylvieve Family's House", EETCBeer, EETCVegetable, EETCVegetable, EETCVegetable, MaintenanceREF.ObjectiveLylvieveBeer, 0, 0, 0, _ST_GV_LylvieveLoyalty, MMLylvieve000, MMLylvieve003)endifEndFunctionFunction Capture0(String PlaceName, Int Item01, Int Item02, Int Item03, Int Item04, Int Objective01, Int Objective02, Int Objective03, Int Objective04, GlobalVariable LoyaltyLevel, ObjectReference MapMarker0, ObjectReference MapMarker3)if Item01 >= Objective01 && Item02 >= Objective02 && Item03 >= Objective03  && Item04 >= Objective04 && MapMarker0.IsEnabled()  Item01 -= Objective01  Item02 -= Objective02  Item03 -= Objective03  Item04 -= Objective04endifEndFunction

"Item01 -= Objective01" does not work, as well as "Item01-= 20" BUT "EETCBeer -= Objective01" works without problem. So it seems that the script can't recognize "EETCBeer" as Item01, and I have absolutely no idea why...

2/ In two other scripts, I have the same architecture, but the first script is for one faction, and the other one for another faction.


if EETCHQREF.EETCHasTavern2 == false && EETCHQREF.EETCHasTavern3 == false  EETCHQREF.EETCBeer += MaintenanceREF.BeerAddedByTavern1  debug.notification("*DEBUG* Beer has been added to EETC")endif

The problem is that both scripts do not execute all the time. I start a new game, sometimes, beers are added, sometimes not... Is there anything that can explain such random behavior ?

-----
It's pretty discouraging after writing thousands of code lines to see that... ^^'

Thanks for reading this!
User avatar
Lexy Corpsey
 
Posts: 3448
Joined: Tue Jun 27, 2006 12:39 am

Return to V - Skyrim