Jump to content

After loading a large script and a lot of other scripts don't work.


Recommended Posts

I'm making a battle where a lot of npcs are fighting each other and after you begin the battle, you must go into 3 different cells where 3 different npcs talk to you. The problem is that these npcs will not go up to you even though dialogue package, variable and script would be working otherwise. It seems that the about of things that are loaded overwhelm the scripts and do not allow them to run.

Here is one of the scripts:

scn Rochfordlaststandscript

begin ontriggerenter player

if JerryWarehousevilleInvasionQuest.rochfordtalking == 1
    set JerryWarehousevilleInvasionQuest.rochfordtalking to 2
    JerryRochfordREF.EVP
endif

end

rochfordtalking has been increased by 1 by another script that does work.

How can I make this script work? I've tried deleting other npcs when the battle starts but the problem still persists. Any ideas?

Link to comment
Share on other sites

hi have had to do the same thing before this is all i have and mine seems to work maybe make sure its the same this is the tutorial i followed

; Declare a variable to ensure the script runs only once
Short DoOnce

Begin OnTriggerEnter Player
    ; Check if the script has not yet run
    If DoOnce ==0
        ; Update the "Talking" variable in the "MyQuest" quest
        Set modrebelenterencedia.Talking to 1
        modRefmynpc.EVP
        ; Mark the script as executed to prevent it from running again
        Set DoOnce to 1
    EndIf
End

 

image.png

Screenshot 2025-02-15 101434.png

Screenshot 2025-02-15 101459.png

Screenshot 2025-02-15 101510.png

Link to comment
Share on other sites

 

7 hours ago, FNVmoder2024 said:

hi have had to do the same thing before this is all i have and mine seems to work maybe make sure its the same this is the tutorial i followed

; Declare a variable to ensure the script runs only once
Short DoOnce

Begin OnTriggerEnter Player
    ; Check if the script has not yet run
    If DoOnce ==0
        ; Update the "Talking" variable in the "MyQuest" quest
        Set modrebelenterencedia.Talking to 1
        modRefmynpc.EVP
        ; Mark the script as executed to prevent it from running again
        Set DoOnce to 1
    EndIf
End

 

image.png

Screenshot 2025-02-15 101434.png

Screenshot 2025-02-15 101459.png

Screenshot 2025-02-15 101510.png

I don't think it has anything to do with the script itself. I've made this exact script before elsewhere and it works perfectly. Somehow, it doesn't work during the battle.

Here is the script for when the battle starts. Everything inside of it works, it's just that it might be loading too much for other scripts to work.

https://pastebin.com/FY3w06V5

Link to comment
Share on other sites

On 2/15/2025 at 6:27 PM, NorthKoreaFriedChicken said:

 

I don't think it has anything to do with the script itself. I've made this exact script before elsewhere and it works perfectly. Somehow, it doesn't work during the battle.

Here is the script for when the battle starts. Everything inside of it works, it's just that it might be loading too much for other scripts to work.

https://pastebin.com/FY3w06V5

yeah maybe try linking the npcs enable state to reduce size of script and improve performance 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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