Jump to content

increase max weight scripting issue. (purchasing increased max weight


mast3rshake2049

Recommended Posts

OK, so i had posted this in the request section but to no avail, so im going to attempt to make the mod my self. (altho iv never made one before so any help would be greatly appreciated)

 

Basically what i wanted to do with the mod was make it so it adds an expensive item at vendors (i think im just going to call it an anti gravity module for around 4000 caps) That would increase your maximum weight limit by ten per module in your inventory. This would allow one to increase their inventory size without it feeling too cheap and make you feel as if youv earned that extra space. (rather then just boosting your maximum weight by a large amount like other mods do)

 

How would i go about making the script for this item so that your inventory limit increases incrementally as you go purchasing the bricks? Is this even a possibility?

 

(im sorry in advance if this is the wrong section, i just really wanna get this mod and have had no luck in with the requests section of the forum)

 

Thanks in advance for any help.

Link to comment
Share on other sites

The easiest way of doing this would be in using an ability to handle the weight increases and have conditional modifiers within that ability to control the weight bonuses based on an item count. Have the same bonus value for each modifier, and enable them incrementally through conditions on those modifiers; first one if count >= 1, second one if count >= 2, ect.

 

Have the item scripted to add the ability to the player when any of the items are added. Don't worry about having to remove the ability since it won't do anything unless the player has atleast one of those items.

 

It means that you'll be limited to only as much bonus as you manually allow within the ability, but is a bit cleaner than using raw scripting for the effect.

Link to comment
Share on other sites

The easiest way of doing this would be in using an ability to handle the weight increases and have conditional modifiers within that ability to control the weight bonuses based on an item count. Have the same bonus value for each modifier, and enable them incrementally through conditions on those modifiers; first one if count >= 1, second one if count >= 2, ect.

 

Have the item scripted to add the ability to the player when any of the items are added. Don't worry about having to remove the ability since it won't do anything unless the player has atleast one of those items.

 

It means that you'll be limited to only as much bonus as you manually allow within the ability, but is a bit cleaner than using raw scripting for the effect.

 

Thanks for the response vagrant, however i must be honest, iv been messing around with it a little more and i realized i really have no idea what im doing. honestly i figured it would be something i could pick up and learn without to much difficulty and by the time i got a response i would know how to implement it. but im way over my head and this would take me a good few days just to get familiar with the tools, much less make the mod itself.

 

So thank you very much for your response, but im afraid im going to have to go back to the request section, i guess i should leave the mod making to the pro's. :(

Link to comment
Share on other sites

The easiest way of doing this would be in using an ability to handle the weight increases and have conditional modifiers within that ability to control the weight bonuses based on an item count. Have the same bonus value for each modifier, and enable them incrementally through conditions on those modifiers; first one if count >= 1, second one if count >= 2, ect.

 

Have the item scripted to add the ability to the player when any of the items are added. Don't worry about having to remove the ability since it won't do anything unless the player has atleast one of those items.

 

It means that you'll be limited to only as much bonus as you manually allow within the ability, but is a bit cleaner than using raw scripting for the effect.

 

Thanks for the response vagrant, however i must be honest, iv been messing around with it a little more and i realized i really have no idea what im doing. honestly i figured it would be something i could pick up and learn without to much difficulty and by the time i got a response i would know how to implement it. but im way over my head and this would take me a good few days just to get familiar with the tools, much less make the mod itself.

 

So thank you very much for your response, but im afraid im going to have to go back to the request section, i guess i should leave the mod making to the pro's. :(

You shouldn't give up so quickly. Modding may be hard to start out, and may require a bit of work, but once you get yourself situated you can suddenly realize just what you can do if you put your mind to it.

Link to comment
Share on other sites

I think the easiest way would be a simple script attached to the item,with the code:

 

begin OnAdd ;when you buy the item,the script start

player.ModActorValue CarryWeight 10 ; Increase your capacity by 10

player.removeitem "your item" 1 ;Remove your item,so you don't need to keep track of it.

end ;End.

 

if you wanna learn more about the GECK,do the way Vagrant0 said,otherwise...

Link to comment
Share on other sites

I think the easiest way would be a simple script attached to the item,with the code:

 

begin OnAdd ;when you buy the item,the script start

player.ModActorValue CarryWeight 10 ; Increase your capacity by 10

player.removeitem "your item" 1 ;Remove your item,so you don't need to keep track of it.

end ;End.

 

if you wanna learn more about the GECK,do the way Vagrant0 said,otherwise...

 

 

awesome that works fine too. so as i understood it basically i would buy the item and my weight would go up and it would disappear. kinda like a permanent chem or something like that right? thanks for the feed back :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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