So: I'm doing this:
EVENT onActivate (objectReference triggerRef) Debug.Trace(self + ": onActivate Called - starting quest " + QuestKeyword); send_story()EndEventFunction send_story() Debug.Trace(self + ": send_story Called - starting quest " + QuestKeyword); actor pc = GetPlayer(); Location locn = pc.GetCurrentLocation() ; ; send the quest Event ; -1 as the first int parameter means "use the default info" - i.e. the "cow for sale" blurb ; QuestKeyword.SendStoryEvent(akLoc = locn, akRef1 = guard, akRef2 = None, aiValue1 = -1, aiValue2 = 0); ; ; now let's record the result of that ; SSG_Question_Script q = QuestProp as SSG_Question_Script; ;MessageBox("q.yes = " + q.get_choice()) Debug.Trace(self + ": sendStory done " + q.get_choice());EndFunctionIn particular, I'm passing -1 as the first integer value:
QuestKeyword.SendStoryEvent(akLoc = locn, akRef1 = guard, akRef2 = None, aiValue1 = -1, aiValue2 = 0);
So you'd expect -1 to be the value in aiValue1 in the radiant quest's http://www.creationkit.com/OnStoryScript_-_Questevent? Right?
To check that, I'm doing this in the script in question:
Event OnStoryScript( \ Keyword akKeyword, Location akLocation, ObjectReference akRef1, ObjectReference akRef2, int aiValue1, int aiValue2 \) speaker = akref1 as Actor chosen = false iv1 = aiValue1 iv2 = aiValue2 trace("SSG_Question_Script: script started by story manager: " + iv1 + "," + iv2) SetStage(10)EndEventSo I ran that from a clean save. What I get in the log file is this:
[04/01/2012 - 01:13:15PM] [SSG_TestButtonScript < (0200B320)>]: onActivate Called - starting quest [Keyword ]
[04/01/2012 - 01:13:15PM] [SSG_TestButtonScript < (0200B320)>]: send_story Called - starting quest [Keyword]
[04/01/2012 - 01:13:15PM] SSG_Question_Script: script started by story manager: 0,0
[04/01/2012 - 01:13:15PM] [SSG_TestButtonScript < (0200B320)>]: send_story Called - starting quest [Keyword
[04/01/2012 - 01:13:15PM] SSG_Question_Script: script started by story manager: 0,0
So am I missing something basic here? Did I make a fundamental error? Or is it just that nothing in the CK works the way it is documented to work?
[edit]
Never mind. It doesn't like negative numbers ... I don't suppose anyone knows any more productive hobbies? I' feeling rather disillusioned with this one.
