Summerknight666 Posted June 10, 2010 Share Posted June 10, 2010 So I've been messing around with this one, as well as googling all over the place.So I need help with quest updates from book reading, but also updates from just entering a house.Please help, guys and gals! Link to comment Share on other sites More sharing options...
alex2avs Posted June 10, 2010 Share Posted June 10, 2010 you attach a script to that book/door. scn testscript short doonce if doonce == 0 set doonce to 1setstage <questid> <stage>endif end or something like that, Link to comment Share on other sites More sharing options...
Summerknight666 Posted June 11, 2010 Author Share Posted June 11, 2010 you attach a script to that book/door. scn testscript short doonce if doonce == 0 set doonce to 1setstage <questid> <stage>endif end or something like that,Well, I guess that's really close. I just need a block type in the begin command now. lol Link to comment Share on other sites More sharing options...
Summerknight666 Posted June 11, 2010 Author Share Posted June 11, 2010 you attach a script to that book/door. scn testscript short doonce if doonce == 0 set doonce to 1setstage <questid> <stage>endif end or something like that,Well, I guess that's really close. I just need a block type in the begin command now. lolActually, nevermind I got it. Begin OnActivate.Woo. lol Link to comment Share on other sites More sharing options...
Summerknight666 Posted June 12, 2010 Author Share Posted June 12, 2010 you attach a script to that book/door. scn testscript short doonce if doonce == 0 set doonce to 1setstage <questid> <stage>endif end or something like that,Well, I guess that's really close. I just need a block type in the begin command now. lolActually, nevermind I got it. Begin OnActivate.Woo. lolOkay, so the problem remains... Now when I start the quest, both of the stages are activated for some reason... Any help anyone? Link to comment Share on other sites More sharing options...
Shadowfen Posted June 12, 2010 Share Posted June 12, 2010 Okay, so the problem remains... Now when I start the quest, both of the stages are activated for some reason... Any help anyone? I think your doonce variable needs to be defined in the quest script rather than in the book/door script so that both items refer to the same variable instead of identically named "local" variables that are private to the individual items. Then your book/door script can refer to/change the quest variable. Link to comment Share on other sites More sharing options...
Summerknight666 Posted June 12, 2010 Author Share Posted June 12, 2010 Okay, so the problem remains... Now when I start the quest, both of the stages are activated for some reason... Any help anyone? I think your doonce variable needs to be defined in the quest script rather than in the book/door script so that both items refer to the same variable instead of identically named "local" variables that are private to the individual items. Then your book/door script can refer to/change the quest variable.So how exactly would I do that? I'm really new to the scripting thing. But I guess you could tell haha Link to comment Share on other sites More sharing options...
Shadowfen Posted June 12, 2010 Share Posted June 12, 2010 Okay, so the problem remains... Now when I start the quest, both of the stages are activated for some reason... Any help anyone? I think your doonce variable needs to be defined in the quest script rather than in the book/door script so that both items refer to the same variable instead of identically named "local" variables that are private to the individual items. Then your book/door script can refer to/change the quest variable.So how exactly would I do that? I'm really new to the scripting thing. But I guess you could tell haha You add another script and this one attaches to the quest itself on the quest page srn myquestscript short mydoonce Then from the other book/door script you would refer to it scn testscript on activate if myquest.mydoonce == 0 set myquest.mydoonce to 1 setstage myquest <stage> endif end Link to comment Share on other sites More sharing options...
Recommended Posts