Jump to content

Please look at this scrpit to see why the Medical Brace wont sort?


MikeHancho64

Recommended Posts

Like it says, I have every other part sorting properly and going where they are supposed to go, but the dang Medical Brace just won't work for whatever reason. This is the same script from DTom's Rivet City Apartment, and I never realized it but it don't work in his either.

 

If (Player.GetItemCount MedicalBrace>=1)

Set tempCount to Player.GetItemCount MedicalBrace

Player.RemoveItem MedicalBrace tempCount

DaggerToolboxPartsMedicalBracereref.additem MedicalBrace tempCount

EndIf

 

I have tried several different types of names for the container thinking that might be it with no luck, and the container it set to persistent. This has me baffled (but it's not like that is that hard though.

Link to comment
Share on other sites

Seems fine to me (although it isn't prettified quite right).

 

if Player.GetItemCount MedicalBrace > 0
set tempCount to Player.GetItemCount MedicalBrace
Player.RemoveItem MedicalBrace tempCount
DaggerToolboxPartsMedicalBracereref.AddItem MedicalBrace tempCount
endif

 

Are you sure you have a Medical Brace in your inventory when you test it?

Link to comment
Share on other sites

Seems fine to me (although it isn't prettified quite right).

 

if Player.GetItemCount MedicalBrace > 0
set tempCount to Player.GetItemCount MedicalBrace
Player.RemoveItem MedicalBrace tempCount
DaggerToolboxPartsMedicalBracereref.AddItem MedicalBrace tempCount
endif

 

Are you sure you have a Medical Brace in your inventory when you test it?

 

Thanks for the reply. LOL, yeah, I have them in my inventory. I even consoled me up some extras to be sure. I have fought with this for more hours than I wish to think about though. I have tried everything I can think of which is not very much as I am just learning. But I have sucessfully created the containers, scaled and placed them for 28 different parts and they all work fine. But I just cannot get this one to work. I used the snip of code you posted and it didn't work either. I have tried every different name I can think of in both the script and my container reference to no avail. The container IS set on persistent also. I just cannot figure out why all the others work but this one.

 

I don't know if it matters or if this will help, but I am using the same script that DTOM used in his Rivet City Apt., and I tested his and his won't sort the medical Braces either.

 

 

My last resore it to load the mod on another computer and try it out, but I don't think that will matter either. I'm out of options on my end. :wallbash:

Link to comment
Share on other sites

well, after about 10 hours of pulling out my hair trying to get this to work I figured out there was a glitch in the game somehow. I have a container set up with 10 of each of the custom weapons parts in it. When I was testing my sorter I would just grab all of the stuff out of that toolbox and run it through the sorter to separate out into the individual parts containers. For some reason, the medical braces that were in the container with the others were not being recognized by the game. They would show up in the pipboy as an item in your inventory, you could manually put them in any container you wanted to and they would show up as an item inside the container. However, when I went to use one to make a weapon, the workbench said I didn't have any medical braces in my inventory even though they clearly showed up as an item in my pipboy! :confused:

 

However, I found one when I was looting somewhere, and it sorted perfectly and was usable to make weapons with. But for some reason, the ones I have pre-loaded into the parts container are like they don't exist even though they show up in your inventory and in the containers. Very strange. Anybody know why this might be happening? (I'll swear, these little glitches like this are gonna make an old man of me... :wallbash: :verymad:

 

EDIT: I found it, lol. The parts box had MedicalBraceNew in it, not the standard MedicalBrace, lol. (Now I feel like a total ass, and a dumb one at that...) :whistling:

Link to comment
Share on other sites

  • Recently Browsing   0 members

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