iceburg Posted May 5, 2012 Share Posted May 5, 2012 Hey all! I'm trying to make a mod that sets your crimegold to a certain variable, but when I use the setcrimegold function, it only works if the players origional crime gold is zero. Can anyone help me?Thank you! Script: crimefactionhaafingar.setcrimegold(akhaafingargold) ps. The script compiles fine, and I have the same problem even if my script is:crimefactionhaafingar.setcrimegold(1) Link to comment Share on other sites More sharing options...
iceburg Posted May 5, 2012 Author Share Posted May 5, 2012 I've created a test script:-----------------------------------------------------------------------------Scriptname AKcrimetest extends ObjectReference faction property akfaction autoint property akbounty auto Event OnActivate(ObjectReference akActionRef) akbounty = 10 debug.notification("Haafinger crime="+ akfaction.getcrimegold()) if akfaction.getcrimegold() >10akfaction.setcrimegold(5)debug.notification("greater than 10. Setting to 5") elseif akfaction.getcrimegold() < 10akfaction.setcrimegold(5+ akfaction.getcrimegold())debug.notification("Less than 10, adding 5")endif endevent----------------------------------------------------------------------------- The script works at 0 bounty, increasing the bounty to 5. It works at 5 bounty, increasing player bounty to 10. At 10 bounty, however, it does nothing. This indicates to me that setcrimegold() only works when it increases the bounty. Does anyone have an idea how I could force it to set bounty to a lower figure, or is this a CK bug? Link to comment Share on other sites More sharing options...
Recommended Posts