Jump to content

Scripting question.... Please help!


Guest Messenjah

Recommended Posts

Guest Messenjah

<p>So, I'm trying to get back into Skyrim modding and started re-working some of my scripts today.</p>

<p> </p>

<p>Here is my dillema:</p>

<p> </p>

<p><code>Scriptname ASXProstSexTriggerSCRIPT extends ObjectReference  <br />

<br />

Quest Property ProstQuest  Auto<br />

<br />

Actor Property NPC01  Auto  <br />

<br />

Actor Property NPC02  Auto  <br />

<br />

Actor Property NPC03  Auto  <br />

<br />

Event OnTriggerEnter ( ObjectReference NPC01)<br />

            if (NPCQuest.GetStage() == 10)<br />

            NPCQuest.SetStage(20)<br />

        Endif<br />

EndEvent</code></p>

<p> </p>

<p> </p>

<p> </p>

<p>So the issue is that I need the OnTriggerEnter event to check if NPC01 OR NPC02 OR NPC03 enter the trigger box. Normally, this is how I would do it:</p>

<p> </p>

<p><code>Event OnTriggerEnter NPC01REF || NPC02REF || NPC03REF</p>

<p>            if (NPCQuest.GetStage() == 10)<br />

            NPCQuest.SetStage(20)<br />

        Endif<br />

EndEvent</code></p>

<p> </p>

<p>However, this doesn't seem to work... how do I accomplish this?</p>

<p> </p>

<p>Also, I have another question... I have a quest with a script attached but somehow it ended up with an extra script attached to it. I try to remove the script but for some reason, it keeps coming back. If I manually delete the script from the script folder/directory, it will then keep asking for the script and the quest will have errors. How do I remove this script completely?</p>

Edited by Messenjah
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...