Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Size modification script?  (Read 709 times)

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Size modification script?
« on: June 12, 2015, 10:58:01 am »

Is there a script that can change height and broadness? I want to dual wield 2h swords but getting a big enough adventurer is a real pain.
EDIT: yes i did try searching the forums
« Last Edit: June 12, 2015, 10:59:39 am by Manzeenan »
Logged

Usul

  • Bay Watcher
    • View Profile
Re: Size modification script?
« Reply #1 on: June 12, 2015, 12:36:48 pm »

You don't need a script, you have several ways to do that with raws modding alone.

Just look in your raw/objects folder, open the creature_standard.txt file, and search for these lines(I took the ones for humans):
Code: [Select]
[BODY_SIZE:12:0:70000]
[BODY_APPEARANCE_MODIFIER:HEIGHT:75:95:98:100:102:105:125]
        [APP_MOD_IMPORTANCE:500]
[BODY_APPEARANCE_MODIFIER:BROADNESS:75:95:98:100:102:105:125]
[APP_MOD_IMPORTANCE:500]
Those are percentages for the variation to height and broadness. You need a size of 77500 to carry a two-handed sword in one hand, so change the values to something higher and you'll be more likely to have an adventurer big enough.

Alternatively if you don't care if others can wield them, replace [TWO_HANDED:77500] by [TWO_HANDED:68000] and all humans adventurers will wield them one-handed.
Logged

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Size modification script?
« Reply #2 on: June 12, 2015, 01:39:21 pm »

ummmm so if i wanted about 1 in 10 human adventurers to be tall/broad enough what would i change?
Logged

Usul

  • Bay Watcher
    • View Profile
Re: Size modification script?
« Reply #3 on: June 12, 2015, 03:54:45 pm »

In creature_standard, after the [CREATURE:HUMAN] tag
replace this:
Code: [Select]
[BODY_APPEARANCE_MODIFIER:HEIGHT:75:95:98:100:102:105:125]
        [APP_MOD_IMPORTANCE:500]
[BODY_APPEARANCE_MODIFIER:BROADNESS:75:95:98:100:102:105:125]
[APP_MOD_IMPORTANCE:500]

by this :
Code: [Select]
[BODY_APPEARANCE_MODIFIER:HEIGHT:85:95:98:100:106:110:125]
[APP_MOD_IMPORTANCE:500]
[BODY_APPEARANCE_MODIFIER:BROADNESS:85:95:98:100:106:110:125]
[APP_MOD_IMPORTANCE:500]

If you feel it's not enough, feel free to tweak the numbers.
Logged

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Size modification script?
« Reply #4 on: June 12, 2015, 04:40:48 pm »

hmmm. so all you have to do is tweak the first number?
Logged

Usul

  • Bay Watcher
    • View Profile
Re: Size modification script?
« Reply #5 on: June 12, 2015, 06:01:11 pm »

All you have to do is to make sure the average value will be near what you want. By reducing the gap between the extreme and the median, you increase your chances to have a greater size. I did also change the numbers greater than 100, to increase the odds to have a size approaching 77500.
Logged