Jump to content

What am I missing in this script?


Deleted2746547User

Recommended Posts

So, right now the Brahmin's AI patrol package result script starts with the Add items to brahmin code and the end is removitems code.

 

But doesn't seem to trigger when the brahmin starts or finishes the route

 

Do you have conditions on the script? I'm at work so I can't look, at the geck, but does the AI packages have conditions and a result script? Or is it just an object script attached to the brahmin?

Link to comment
Share on other sites

So, right now the Brahmin's AI patrol package result script starts with the Add items to brahmin code and the end is removitems code.

 

But doesn't seem to trigger when the brahmin starts or finishes the route

 

Do you have conditions on the script? I'm at work so I can't look, at the geck, but does the AI packages have conditions and a result script? Or is it just an object script attached to the brahmin?

 

 

I may be doing it incorrectly, but I just have that code on the AI packages beginning and end result...

 

If i'm missing something else, I wouldn't have a clue.

Link to comment
Share on other sites

Any ideas? I tried changing it to where it only

 

BlackbriarBaseStorageRef.additem BlackbriarSalt 5

 

to the end of the brahmin's ai patrol package :wallbash: :wallbash: :wallbash: :wallbash: :wallbash: so it simply adds 5 salt to the storage container for the base when the brahmin reaches the last x marker heading on the patrol.

 

And nothing..

Link to comment
Share on other sites

OK, so no conditions that might be excluding the script results.........hmmm, I'm not too sure. The thing is that now there are other factors than only the script. So nothing else on the begin/end/change tab other than BlackbriarBaseStorageRef.additem BlackbriarSalt 5 in "on begin" result script and just BlackbriarMInedAkstonBrahminCargo.removeallitems BlackbriarBaseStorage on the "on end" result script?

 

 

I'll be doing a little work on a companion in a couple of hours. If no one has responded pm and if you want I can send you my email and take a look at the esp.

Link to comment
Share on other sites

OK, so no conditions that might be excluding the script results.........hmmm, I'm not too sure. The thing is that now there are other factors than only the script. So nothing else on the begin/end/change tab other than BlackbriarBaseStorageRef.additem BlackbriarSalt 5 in "on begin" result script and just BlackbriarMInedAkstonBrahminCargo.removeallitems BlackbriarBaseStorage on the "on end" result script?

 

 

I'll be doing a little work on a companion in a couple of hours. If no one has responded pm and if you want I can send you my email and take a look at the esp.

 

 

ok, will definitely do. but i will probably need your help. besides you and about five others... people don't seem too interested in even offering advice.

 

Did you see my post about the menu option script?

Link to comment
Share on other sites

I think part of the problem is the result scripts only fire off if there is a state change for that package. You have your result script set for "on end", but there is only one ai package for the brahmin, so I think the brahmin is always on that package (BlackbriarAkstonSaltworksDelivery) and the script never fires. Maybe if you had other packages, with evp between them and a script to change variables to tie them together it might work. But I believe that right now, it never changes states.

 

What I would recommend is skipping the result scripts all together and simply putting some triggers on each end of the patrol. Have it check for this specific actor and run your script.

Link to comment
Share on other sites

I think part of the problem is the result scripts only fire off if there is a state change for that package. You have your result script set for "on end", but there is only one ai package for the brahmin, so I think the brahmin is always on that package (BlackbriarAkstonSaltworksDelivery) and the script never fires. Maybe if you had other packages, with evp between them and a script to change variables to tie them together it might work. But I believe that right now, it never changes states.

 

What I would recommend is skipping the result scripts all together and simply putting some triggers on each end of the patrol. Have it check for this specific actor and run your script.

 

 

Brother, you are speaking Greek to me. Can you give me an example to work with. :unsure:

Link to comment
Share on other sites

Brother, you are speaking Greek to me. Can you give me an example to work with. :unsure:

 

I woudn't worry about it, I'd just make a trigger at the beggining and the end, and attach your script to them, instead of trying to use the result script for the packages. Here is how to make a primitive if your not already familiar with it. The form lets you attach a script directly (object script). You can have the first one add the salt to the inventory and when the brahmin passes through it, it will trigger. Just make sure that you set it to if == yourBrahmin. You don't want any other actor passing through to get salt.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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