Jump to content

How to change only 1 value, not all item in by mod.


elislavkat

Recommended Posts

so, now i'm writing

 

item Eraser
    {
        Weight    =    0.05,
        Type    =    Normal,
        DisplayName    =    Eraser,
        Icon    =    Eraser,
    }

 

but wanna

 

item Eraser
    {
        Weight    =    0.05,
     }

 

is there syntaxis for change only weight?

 

Link to comment
Share on other sites

You will need to include  Type/ DisplayName and Icon as they give ref to the object and allow it to be classed.

 

 

item Eraser
    {
        Weight    =    0.05,    <-- change  0.05 to another amount.  eg  0.01
        Type    =    Normal,
        DisplayName    =    Eraser,
        Icon    =    Eraser,
    }

Link to comment
Share on other sites

On 11/7/2019 at 4:23 PM, Cory said:

You will need to include  Type/ DisplayName and Icon as they give ref to the object and allow it to be classed.

 

 

item Eraser
    {
        Weight    =    0.05,    <-- change  0.05 to another amount.  eg  0.01
        Type    =    Normal,
        DisplayName    =    Eraser,
        Icon    =    Eraser,
    }

and,  should i write something like " input base"  ?

Link to comment
Share on other sites

Yes the full script would be something like..

 

module Base
{

 

     /***********Normal*************

item Eraser
    {
        Weight    =    0.05,    <-- change  0.05 to another amount.  eg  0.01
        Type    =    Normal,
        DisplayName    =    Eraser,
        Icon    =    Eraser,
    }

 

}

 

Link to comment
Share on other sites

1 hour ago, Cory said:

Yes the full script would be something like..

 

module Base
{

 

     /***********Normal*************

item Eraser
    {
        Weight    =    0.05,    <-- change  0.05 to another amount.  eg  0.01
        Type    =    Normal,
        DisplayName    =    Eraser,
        Icon    =    Eraser,
    }

 

}

 

Thanks, will try it with something bigger 

Link to comment
Share on other sites

  • 2 weeks later...
On 11/9/2019 at 4:52 AM, Cory said:

Yes the full script would be something like..

 

module Base
{

 

     /***********Normal*************

item Eraser
    {
        Weight    =    0.05,    <-- change  0.05 to another amount.  eg  0.01
        Type    =    Normal,
        DisplayName    =    Eraser,
        Icon    =    Eraser,
    }

 

}

 

no this doesn't work - you need to determine all values again.

Link to comment
Share on other sites

9 hours ago, elislavkat said:

no this doesn't work - you need to determine all values again.

Not sure what your now trying to do now, but to change the weight of an item, as you asked is as per above. Simply change the weight value.
 

 

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...