Jump to content

Scripting A Decimation [Fallout 3]


Kidaen

Recommended Posts

Posted

So in randomly searching for mods, I found the Attack of the Fifty Foot Woman perk mod, thought it would be fun for my current play through, and I'm playing a melee character, so the increasing scale is really useful.

 

The only problem is it breaks carry weight by giving one pound (are they pounds or just "units"... nevermind) per rad. Resulting in getting up to 999 free carry weight, which means I can carry almost everything.

 

I'd like to cut it down to tenth of what it is now. But, I have no idea how to even begin scripting the necessary changes in GECK as I know it's not as simple as adding a "/10" to the end of the script that changes carry weight. So what would I need to do to get what I want?

 

 

Script is as follows:

 

scriptName zzGrowShrinkScript
 
short startGrow        ; set to 1 to start growing
short doOnce
float myScale        ; current scale
float targetScale    ; how big do I want to get?
float CarryWeightDefault
float CarryWeightIncrease
 
Begin GameMode
 
 
    if Player.HasPerk aa50FootWoman
    if playerref.GetActorValue radiationrads > 1
 
        if (doOnce != 1)
            set CarryWeightDefault to (player.GetActorValue CarryWeight)
            set doOnce to 1
        endIf
 
        set targetScale to (1+ ((playerref.GetActorValue radiationrads) / ((200000000 / playerref.GetActorValue radiationrads) / playerref.GetActorValue radiationrads)))
        set CarryWeightIncrease to (CarryWeightDefault + (playerref.GetActorValue radiationrads))
        playerref.SetActorValue CarryWeight CarryWeightIncrease
 
        if myScale < targetScale
            set myScale to myScale + 0.01
            playerref.setScale myScale
 
        elseif (myScale - 0.05) > targetScale
            set myScale to myScale - 0.01
            playerref.setScale myScale
        endif
 
    endif
    endif
 
    
 
end

Posted

comand console

 

Player.setav Carryweight ###

 

Substute for the weight you wish to have/use.

 

Try this before you start messing with scripts and geck expecally if you are not sure of what your doing.

 

Hope it helps.

Posted

 

So in randomly searching for mods, I found the Attack of the Fifty Foot Woman perk mod, thought it would be fun for my current play through, and I'm playing a melee character, so the increasing scale is really useful.

 

The only problem is it breaks carry weight by giving one pound (are they pounds or just "units"... nevermind) per rad. Resulting in getting up to 999 free carry weight, which means I can carry almost everything.

 

I'd like to cut it down to tenth of what it is now. But, I have no idea how to even begin scripting the necessary changes in GECK as I know it's not as simple as adding a "/10" to the end of the script that changes carry weight. So what would I need to do to get what I want?

 

 

Script is as follows:

 

scriptName zzGrowShrinkScript
 
short startGrow        ; set to 1 to start growing
short doOnce
float myScale        ; current scale
float targetScale    ; how big do I want to get?
float CarryWeightDefault
float CarryWeightIncrease
 
Begin GameMode
 
 
    if Player.HasPerk aa50FootWoman
    if playerref.GetActorValue radiationrads > 1
 
        if (doOnce != 1)
            set CarryWeightDefault to (player.GetActorValue CarryWeight)
            set doOnce to 1
        endIf
 
        set targetScale to (1+ ((playerref.GetActorValue radiationrads) / ((200000000 / playerref.GetActorValue radiationrads) / playerref.GetActorValue radiationrads)))
        set CarryWeightIncrease to (CarryWeightDefault + (playerref.GetActorValue radiationrads))
        playerref.SetActorValue CarryWeight CarryWeightIncrease
 
        if myScale < targetScale
            set myScale to myScale + 0.01
            playerref.setScale myScale
 
        elseif (myScale - 0.05) > targetScale
            set myScale to myScale - 0.01
            playerref.setScale myScale
        endif
 
    endif
    endif
 
    
 
end

Yep should bea ble to just change that line to this:

 

set CarryWeightIncrease to (CarryWeightDefault + ((playerref.GetActorValue radiationrads)/10))

Posted

That was it Halstrom?

That simple..?

 

Wow I posted comand when it would be almost as easy and permament to change this code. Not to mention far better..

 

Thanks both you Halstrom and Kidaen opened my eyes... learning more every day...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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