adventure key eating bandage

Spike

Active Member
Aug 4, 2019
42
0
ok so my adventure key for some reason when u tell it to add from pack its eating the everlasting bandage with the others on the script is just says bandage how can i fix this so it will not eat the everlasting bandage
 

PyrO

Well-Known Member
Jan 27, 2015
1,172
95
You would need an check to see if it is a normal bandage or not
 

PyrO

Well-Known Member
Jan 27, 2015
1,172
95
It is added correctly? But just the name is wrong? Then you need to change the name for it,
If it adds the everlasting bandage to the normal bandages then you need the check to make sure its added properly
 

Spike

Active Member
Aug 4, 2019
42
0
It is added correctlyy? But just the name is wrong? Then you need to change the name for it,
If it adds the everlasting bandage to the normal bandages then you need the check to make sure its added properly
ya i mean what am i checking i can send u a screen shot of the script for they key or the script itself cause not sure why its doing it
 

PyrO

Well-Known Member
Jan 27, 2015
1,172
95
just put the code in the code tags here and it should be easily solvable
 

Quasar

Well-Known Member
Oct 26, 2018
167
19
Pretty sure that he is saying to change the name of everlasting bandage you could call it med kit or anything else and see what happens or it looks like you could comment out line 28 so that the key will no longer take bandages of any kind.
 

PyrO

Well-Known Member
Jan 27, 2015
1,172
95
You found the code, since you took a screenshot of it ;)

when you post it, in that little window you will see a symbol that looks like </> this will place a code tag where you can place the code inside.

Pretty sure that he is saying to change the name of everlasting bandage you could call it med kit or anything else and see what happens or it looks like you could comment out line 28 so that the key will no longer take bandages of any kind.
no thats not what I said at all, it checks for Bandage. EverlastingBandage is probably a child of Bandage, therefor it counts there too since it is not an explicit check but just that it is assignable from Bandage
 

Spike

Active Member
Aug 4, 2019
42
0
You found the code, since you took a screenshot of it ;)

when you post it, in that little window you will see a symbol that looks like </> this will place a code tag where you can place the code inside.


no thats not what I said at all, it checks for Bandage. EverlastingBandage is probably a child of Bandage, therefor it counts there too since it is not an explicit check but just that it is assignable from Bandage
ok so what can i do so it will only take a reg bandage and not the everlasting
 

PyrO

Well-Known Member
Jan 27, 2015
1,172
95
You would need to look at the check if the item is found and then make sure that make an exception for bandages to check if it is an everlasting one.
 

Spike

Active Member
Aug 4, 2019
42
0
You would need to look at the check if the item is found and then make sure that make an exception for bandages to check if it is an everlasting one.
ok not sure how to do that im kinda just starting out
 

PyrO

Well-Known Member
Jan 27, 2015
1,172
95
Then attach the AdventuresKey and the BaseStorageKey, if I have those I can take a peek
 

Quasar

Well-Known Member
Oct 26, 2018
167
19
it looks like it is a blessed item, would it be easier to make it so that the key excludes blessed items? I doubt anyone would have any of the other items blessed that this key would take, unless someone scripted and everlasting lockpick.
 
Last edited:

PyrO

Well-Known Member
Jan 27, 2015
1,172
95
it looks like it is a blessed item, would it be easier to make it so that the key excludes blessed items?
Yes that can work, but it can also make things you want to store, be unstorable. It depends on the usecase

@Spike ok there should be an ItemStore class as well, need that one too since the code for adding items to the storage is inside that class
 

Spike

Active Member
Aug 4, 2019
42
0
Yes that can work, but it can also make things you want to store, be unstorable. It depends on the usecase

@Spike ok there should be an ItemStore class as well, need that one too since the code for adding items to the storage is inside that class
 

Attachments

PyrO

Well-Known Member
Jan 27, 2015
1,172
95
There, its added on line 644. Not sure about the class name for the EverlastingBandage, if it is wrong you would need to change it there
 

Attachments