Script formula question

Post » Sat Nov 17, 2012 2:17 am

I want to start a quest after a dialogue, so, in the Topic Info box "End:" i wrote:
;WICastMagic04.setstage(10);WICastMagic04.SetObjectiveDisplayed(10)

Is the formula correct?

Make sure you remove the semi-colons ;) otherwise, it looks fine.
User avatar
marie breen
 
Posts: 3388
Joined: Thu Aug 03, 2006 4:50 am

Post » Fri Nov 16, 2012 8:19 pm

What semi-colons?
User avatar
Sun of Sammy
 
Posts: 3442
Joined: Mon Oct 22, 2007 3:38 pm

Post » Fri Nov 16, 2012 4:24 pm

Ummm. The ones at the beginning of your lines, which are commenting out your code.
User avatar
Karine laverre
 
Posts: 3439
Joined: Tue Mar 20, 2007 7:50 am

Post » Sat Nov 17, 2012 3:53 am

I have write:
WICastMagic04.Setstage(10)WICastMagic04.SetObjectiveDisplayed(10)

and I've got an error when I compile my script:

Starting 1 compile threads for 1 files...Compiling "TIF__00023EE1"...C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim\Data\Scripts\Source\temp\TIF__00023EE1.psc(9,0): variable WICastMagic04 is undefinedC:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim\Data\Scripts\Source\temp\TIF__00023EE1.psc(9,14): none is not a known user-defined typeC:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim\Data\Scripts\Source\temp\TIF__00023EE1.psc(10,0): variable WICastMagic04 is undefinedC:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim\Data\Scripts\Source\temp\TIF__00023EE1.psc(10,14): none is not a known user-defined typeNo output generated for TIF__00023EE1, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on TIF__00023EE1

I've done something wrong?

P.S.: Script source (TIF_00023EE1)
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname TIF__00023EE1 Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEWICastMagic04.setstage(10)WICastMagic04.SetObjectiveDisplayed(10);END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin comment
User avatar
James Hate
 
Posts: 3531
Joined: Sun Jun 24, 2007 5:55 am

Post » Sat Nov 17, 2012 2:37 am

you need to declare WICastMagic04 as a quest property and fill it by pointing it to your quest
User avatar
Rinceoir
 
Posts: 3407
Joined: Thu Jun 29, 2006 1:54 am


Return to V - Skyrim