Rumbleskin Posted November 11, 2010 Share Posted November 11, 2010 Hiya am trying to make a quest that starts when you pick up a holotape. I have made the quest its just the script i need help with scn 1Mariastage10triggerSCRIPTbegin onGrab 1mariastartREFif getStage 1Maria < 10 setStage 1Maria 10 endif end This is my first questI called the questID 1Mariaand the item 1Mariastart (The holotape)Am pretty sure i made the quest the right way its just not the script thats workingCan anyone please help Link to comment Share on other sites More sharing options...
WastelandAssassin Posted November 11, 2010 Share Posted November 11, 2010 i think it should be OnActivate, and not OnGrabi think that the grad is when you actually grab an object (with the Z key, when you can move it around)try changing it, and maybe this will work then Link to comment Share on other sites More sharing options...
Rumbleskin Posted November 11, 2010 Author Share Posted November 11, 2010 i think it should be OnActivate, and not OnGrabi think that the grad is when you actually grab an object (with the Z key, when you can move it around)try changing it, and maybe this will work then it dosent seem to want to save the script when i change OnGrab to OnActivate Link to comment Share on other sites More sharing options...
WastelandAssassin Posted November 11, 2010 Share Posted November 11, 2010 well, i am not really sure about why......i think maybe the OnActivate is supposed to be a script for an item, meaning that it can't get the item ref after that linenot sure about that...... have you tried your quest as it is, in the game??if so, try to just move the holotape, and see if the quest starts Link to comment Share on other sites More sharing options...
Aragron Posted November 11, 2010 Share Posted November 11, 2010 If the holotape is like a misc item you should use an OnAdd begin,so when you pickup the item,the script start.Don't forget to attach the script to the item,Also,i think the right command would be startquest 1Maria then setqueststage (or setstagequest...). Link to comment Share on other sites More sharing options...
Rumbleskin Posted November 11, 2010 Author Share Posted November 11, 2010 If the holotape is like a misc item you should use an OnAdd begin,so when you pickup the item,the script start.Don't forget to attach the script to the item,Also,i think the right command would be startquest 1Maria then setqueststage (or setstagequest...). It looks like this nowscn 1Mariastage10triggerSCRIPTbegin onADD 1mariaitemif getStage 1Maria < 10 startquest 1Maria 10 endif end But it wont let me save it. Also i have script type set to object but i also tryed with it set to quest, neather worked (couldent save etc). Maybe am just missing somthing really basic? Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted November 11, 2010 Share Posted November 11, 2010 1) you may not want to call it 'triggerscript', but that's just convention2) You want the script added to the item, not the quest3) the script should look something like scn 1Mariastage10script Begin OnAdd player if getstage 1Maria < 10 startquest 1Maria setstage 1Maria 10 endif End Link to comment Share on other sites More sharing options...
Rumbleskin Posted November 11, 2010 Author Share Posted November 11, 2010 1) you may not want to call it 'triggerscript', but that's just convention2) You want the script added to the item, not the quest3) the script should look something like scn 1Mariastage10script Begin OnAdd player if getstage 1Maria < 10 startquest 1Maria setstage 1Maria 10 endif End The script saved and i added it to the item but it still dosent seem to want to work Here is how the quest itself looks (Its not advanced or anything i did a tutorial but changed it around a little) Quest data tab Quest name= Looking for maria ID= 1maria priorty 50script nonestart game enabled =check script process delay =check Quest stages tabIndex 10 has log entry SetObjectiveDisplayed 1Maria 10 1index 100 has empty Quest objectives tabobject index shows 10 with text display =no place like sloantarget ref QJmesshall 11maria Am trying to make a quest that will send the player to sloan after picking up the first holotape to find a girl named maria, but she is not there but you find another holotape there. Also am hoping to get a text to pop up on the screen when the play gets the text that says No place like Sloan Any more tips or if you noticed were i screwed up would be great :) Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted November 11, 2010 Share Posted November 11, 2010 You don't need start game enabled, you are starting it with the holotape. You want setobjectivedisplayed 1maria 10 1 in the result script box (from memory, not looking at geck right now), not log entry. Log entry is just notes for yourself. Link to comment Share on other sites More sharing options...
Rumbleskin Posted November 11, 2010 Author Share Posted November 11, 2010 You don't need start game enabled, you are starting it with the holotape. You want setobjectivedisplayed 1maria 10 1 in the result script box (from memory, not looking at geck right now), not log entry. Log entry is just notes for yourself.thanks man that worked the quest came up and everything and the marker pointed to the right place, but now i have another problem, when i grabed the second holo disk it dident finish the quest and the marker still points to the old spot. the second tap is just a note and i cant bind the note to a script, all i can do is set the items owning quest to Maria1. Should i just make a item like the last one and write a script for it. I have a script writen but it wont let me save it scn 1MariaEndTRIG begin OnTrigger player if getStage 1Maria < 100 if player.getHasNote 2mariaitem setStage 1Maria 100 endif endif end Thanks agian for any help :) Link to comment Share on other sites More sharing options...
Recommended Posts