Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Help?


Happy-i-am
 Share

Recommended Posts

Hi, im haveing a probelm with a quest script

scn DSTquest1 Begin OnAdd Playersetstage CaptainsSwordQuest 10End

ok so thats the code and this is my quest

find a ghost he gives you a quest, you get an dairy entre and you go in cave find sword, get new entre, take sword back quest done.

I dont have net on the computer im making the mod on atm, so i cant just copy and paste every thing for yous, i got to remember it off my head :D

Once quest done an .enable (25 of them) make an small bandit camp with npc appear next to the tavern.

So thanks for any help.

Link to comment
Share on other sites

That is not a 'quest' script, it is an 'object' script.

That means the script would go on, for example, the sword. When the sword is picked up, the quest would be incremented appropriately. But you probably only want to do it once, right?

scn DSTquestSwordScriptShort doOnceBegin OnAdd Player   if doOnce == 0      set doOnce to 1      setstage CaptainsSwordQuest 10    endifEnd

And you do not need to 'enable' 25 objects. You only need to enable one, and set all the other objects 'parentage' tab to point to the one object being enabled.

A bit off topic there. I never did figure out what the 'problem' was. Can you be more specific as to whats not working?

Link to comment
Share on other sites

I can only guess that you are not setting the getItemCount up correctly.

if player.GetItemCount MySword >= 1  setstage CaptainsSwordQuest 20endif

You MUST use the base name of the sword, not the formID or anything else. (MySword)

And you MUST call it on the "player".

In dialog/quests, the getItemCount would work about the same, but you must select the correct options.

Link to comment
Share on other sites

Quote

I can only guess that you are not setting the getItemCount up correctly.
if player.GetItemCount MySword >= 1  setstage CaptainsSwordQuest 20endif
You MUST use the base name of the sword, not the formID or anything else. (MySword)And you MUST call it on the "player".In dialog/quests, the getItemCount would work about the same, but you must select the correct options.


Hey thanks man, i got it working without getcount im just using getstage :bagged:
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...