David Brasher Posted April 6, 2012 Share Posted April 6, 2012 (edited) There is a script in the wiki that does not compile: float myDeadCount kmyQuest.deadCount = 10 ;setting property Source:Variables and Properties I am assuming that there is trick that they used to make their script compile. It does not seem like they would waste their time and our time by putting a script into the wiki that never compiles. So there must be some trick that they used to make it so their script could compile. no viable alternative at input '='What is that supposed to mean? It is the integer 10! Is Papyrus so stupid that it can't count that high? It is not like I have given it a decimal or something. I am sure that "float" would cover that range. It seems that Papyrus does not recognize "short." It does not work if I initialize with "int." I do not think it would require "long" for a number as low as 10. Edited April 6, 2012 by David Brasher Link to comment Share on other sites More sharing options...
fg109 Posted April 6, 2012 Share Posted April 6, 2012 Floats don't accept integer values, so you have to use 'kmyquest.deadcount = 10.0'. I know it's stupid, but that's just how it is. Link to comment Share on other sites More sharing options...
tunaisafish Posted April 6, 2012 Share Posted April 6, 2012 That's in the section that shows how to refer to your main quest script from your fragment.Did you write and save the main quest script, and set the magic variable 'kmyQuest' as described? Link to comment Share on other sites More sharing options...
Recommended Posts