Jump to content

badassmthfck

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by badassmthfck

  1. I'm trying to spawn a boss enemy after dealing with several smaller mobs. After some help here on the forums I managed to build a script that advances the objective by 10 on each kill, however I'm not sure what script to use in order to activate a trigger box. Is there an existing script I could plug in that let's me do that or do I need to write one myself? If the latter is true I would very much appreciate any help with writing it, I'm less than fluent in papyrus syntax.



    This is the script I'm using for advancing the objective, although I haven't been able to test if it's working properly because I don't know how to start the trigger on a specific step:


    int myInt


    Event OnDeath(Actor killler)

    myInt = Advquestondeath.getstage() + 10

    Advquestondeath.setstage(myInt)

    endEvent


    I should also mention, I have the trigger box setup to spawn the boss enemy when the player enters, that part is working. What I'm wondering is how to activate it on a specific event

  2. I'm trying to spawn a boss enemy after dealing with several smaller mobs. After some help here on the forums I managed to build a script that advances the objective by 10 on each kill, however I'm not sure what script to use in order to activate a trigger box. Is there an existing script I could plug in that let's me do that or do I need to write one myself? If the latter is true I would very much appreciate any help with writing it, I'm less than fluent in papyrus syntax.

     

    This is the script I'm using for advancing the objective, although I haven't been able to test if it's working properly because I don't know how to start the trigger on a specific step:
    int myInt
    Event OnDeath(Actor killler)
    myInt = Advquestondeath.getstage() + 10
    Advquestondeath.setstage(myInt)
    endEvent
    I should also mention, I have the trigger box setup to spawn the boss enemy when the player enters, that part is working. What I'm wondering is how to activate it on a specific event
    Edit: I realized I posted it in the wrong thread, reposted the question to mod troubleshooting, not sure how to delete this thread: https://forums.nexusmods.com/index.php?/topic/6499621-how-do-i-activate-a-trigger-box-on-a-specific-quest-step/
  3. What I need to do is spawn a boss enemy after dealing with several mobs. Essentially I need to advance the quest by a set amount on each subsequent kill, however I haven't been able to figure it out. The script I used earlier went as follows:



    Event OnDeath(Actor killer)

    Advquestondeath.SetStage(20)

    EndEvent


    For obvious reasons, this can cause sequencing errors if the player kills mobs out of one specific sequence

    What I need is for this "Advquestondeath.SetStage(20)" to become "Advquestondeath.SetStage(current quest stage+10)".


    I assume it's very simple to do for someone familiar with the engine, but without knowing the syntax I don't even know what errors I'm making when trying to script it.


    Any and all help will be greatly appreciated!


  4. Hi everyone!



    What I want to do is spawn a boss enemy after dealing with several mobs. Essentially I need to advance the quest by a set amount on each subsequent kill, however I haven't been able to figure it out. The script I used earlier went as follows:



    Event OnDeath(Actor killer)

    Advquestondeath.SetStage(20)

    EndEvent


    For obvious reasons, this can cause sequencing errors if the player kills mobs out of one specific sequence

    What I need is for this "Advquestondeath.SetStage(20)" to become "Advquestondeath.SetStage(current quest stage+10)".


    Any and all help will be greatly appreciated!

  5. What I want to do is spawn a boss enemy after dealing with several mobs. Essentially I need to advance the quest by a set amount on each subsequent kill, however I haven't been able to figure it out. The script I used earlier went as follows:

    Event OnDeath(Actor killer)
    Advquestondeath.SetStage(20)
    EndEvent
    For obvious reasons, this can cause sequencing errors if the player kills mobs out of one specific sequence
    What I need is for this "Advquestondeath.SetStage(20)" to become "Advquestondeath.SetStage(current quest stage+10)".
    Any and all help will be greatly appreciated!
×
×
  • Create New...