spawn690 Posted October 20, 2006 Share Posted October 20, 2006 okay here is what I am trying to do. When the game starts and the player is higher then lvl 5, i want this scrpt to start. Upon it starting i want the quest to start and and the player to get and item (a piece of paper) i was atempting the too apply the script from the obliviong turyment yet he dose not have a lvl req on his its as soon as the game starts. okay here is what i got for the script that dont appear to work Quest name isNCthestartthe items id isNCpaper01 SCriptname NecromancerthebeginingSCR Short Doonce Begin GameModeIF (Doonce != 1)IF (player.getlevel >= 5) Setstage NCthestart 10 Player.additem NCpaper01Set Doonce to 1endifendifend according to my knowlage with scripting (self taught from nothing woot woot) it should once the game is enabled check to see if the player is lvl 5 or greater they get the quest witch will read "I have found a note in my backpack, I wonder what is says, prehaps I should read it" The player will look at the note (equip it) and a script will start asking him weather he wants to join the necromancers with 2 buttons yes or no and depending on your choice it will take the right actions. but the first script refuses to work, and prehaps my other script wont work either ill write it and a more experianced scripter may or may not be able to help me Scriptname NecromancerJoinSCR Begin OnEquip playerIf (Getstage NCthestart == 10)Messagebox "Upon reading the note I hear a voice in my head 'We have been watching you and we the necromancers believe that you will be the deciding factor in this war between the arcane magi and us, we want you will you join us?'" "Yes, I will follow the necromancers" "No, I will not side with necromancers"If Getbuttonpressed is 1 Messagebox "Well done, well done you will recieve your first orders soon"setstage ncthestart to 20else Messageobx "Wrong anwser now feel the wrath of the necromancers" Placeatpc "nasty crature" 2, 0, 0setstage ncthestart 50endifendifend What it should do, when the player reads the note it will start the first messagebox and give the 2 buttons, if he presses yes the first button should work, otherwise the other will take effect and place 2 creatures on you. Hope i made sence :D Link to comment Share on other sites More sharing options...
GBHis Posted October 20, 2006 Share Posted October 20, 2006 This should work? It is the quest ID you supplied, right? Not just the name? :)SCriptname NecromancerthebeginingSCR Short Doonce Begin GameMode IF (Doonce != 1) IF (player.getlevel >= 5) Setstage NCthestart 10 Player.additem NCpaper01 1 Set Doonce to 1 endif endif end I hate messagebox. Well, not messagebox, but getbuttonpressed. Sometimes it has to be run within the same frame - usually it has to be run just after the messagebox. Strange. Link to comment Share on other sites More sharing options...
spawn690 Posted October 20, 2006 Author Share Posted October 20, 2006 This should work? It is the quest ID you supplied, right? Not just the name? :)SCriptname NecromancerthebeginingSCR Short Doonce Begin GameMode IF (Doonce != 1) IF (player.getlevel >= 5) Setstage NCthestart 10 Player.additem NCpaper01 1 Set Doonce to 1 endif endif end I hate messagebox. Well, not messagebox, but getbuttonpressed. Sometimes it has to be run within the same frame - usually it has to be run just after the messagebox. Strange. Okay, thanks so you want me to remove the messagebox? hmmmmm okay. That is the quest id too :D, okie dokie thanks awhole lot :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.