Jump to content

Photo

How can I put a new script in a quest?

vampire quest script

  • Please log in to reply
6 replies to this topic

#1
Shadow9605

Shadow9605

    Newbie

  • Members
  • Pip
  • 18 posts

Hi everyone.

 

I want to put a new script in the quest PlayerVampireQuest I do this:

 

1)  I make the new script an put it in the quest PlayerVampireQuest the event OnUpdateGameTime to add a new aptitd to the player but it but it doesn't work

 

2)  To see if the problem was my code I copy all the script of PlayerVampireQuestScript an paste in my new script and add the new aptitud for the player but it doesn't work too

 

3)  I add the new aptitud in PlayerVampireQuestScript and if it worked

 

So I don´t kno wwhy the new script in the quest doesn´t work Can someone can help me?



#2
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 10,904 posts

Are you testing on a new game?  Or at least on a game where the PlayerVampireQuest has not already been started?

 

Once a quest has started all attached scripts are "baked in", some minor changes can be done to the existing scripts but no new scripts will be recognized until the quest has been stopped and restarted.  Given that not all quests can safely be stopped and restarted without causing other issues, it is always best to test on a new game or at the very least a save that does not have any of the associated things already active.



#3
Shadow9605

Shadow9605

    Newbie

  • Members
  • Pip
  • 18 posts

Yes, I know that and that's why I deleted the saved documents and restart the game and do all the quest unbound and then I search a vampire to activate the quest PlayerVampireQuest


Edited by Shadow9605, 01 July 2021 - 03:08 am.


#4
maxarturo

maxarturo

    What does this even mean?

  • Supporter
  • 3,123 posts

Why don't you explain with simple words and in order what you want to achieve, maybe someone could provide assistance easily if she / he knows the objective, and the solution could have a different approach or application.



#5
Shadow9605

Shadow9605

    Newbie

  • Members
  • Pip
  • 18 posts

I want to add a new vampire aptitud using a spell but I don´t want to edit the original script PlayerVampireQuestScript in the quest PlayerVampireQuest (Although I have already done it like that and works perfect but I don't want to do it like this) so I want to add a new script in in the quest PlayerVampireQuest to add the aptitud that I make.



#6
ReDragon2013

ReDragon2013

    Old hand

  • Members
  • PipPipPip
  • 740 posts

maxarturo wrote: "Why don't you explain with simple words and in order what you want to achieve"

That's the point.

 

Usually you have to create a new quest with CK and there add a new alias filled with unique player as reference. That means you should have after that an own "<modname>.esp" file in data folder.

Because of your "aptitud" spell this should be already done.

 

Now add next script to this alias (name it as you like, but unique as possible)

Shadow9605PlayerAliasAptitudScript

Spoiler

Edited by ReDragon2013, 01 July 2021 - 09:54 am.


#7
Shadow9605

Shadow9605

    Newbie

  • Members
  • Pip
  • 18 posts

I know all that you telling me but the didn't work but now I now what is my problem the problem is that I was using the event OnUpdateGameTime and I find out because I tried again to make my script work by executing the quest and then I teleported with the map to hibernalia and from that it worked and now i use the event onInit a work when the quest PlayerVampireQuest run.

 

Thank you for try to help me ReDragon2013maxarturo and IsharaMeradin.







Also tagged with one or more of these keywords: vampire, quest, script

IPB skins by Skinbox
Page loaded in: 0.353 seconds