Clothing Enchantments [message #69130] |
Thu, 18 July 2013 13:02 |
|
Sparrow
Messages: 576 Registered: March 2011
|
|
|
|
Would it be possible to apply augmentations to clothing? Or add special effects to clothing? I want to make Mage robes from skyrim with special abilities to like make your magic stronger or just give you more mana.
Are you shpongled?
|
|
|
|
|
Re: Clothing Enchantments [message #69163 is a reply to message #69154] |
Sat, 20 July 2013 23:22 |
|
JohnDoe
Messages: 3007 Registered: October 2007
|
Retired
|
|
|
You can add a CBonusItemDef to clothes if you wish. If you do it perfectly and the game doesn't crash, I hypothesize that the best-case scenario is that the item acts like a book with a CBonusItemDef - that it's having the item that increases your health and will, not wearing the item, which is not exactly the sort of "enchanting" you want. Or, another likely possibility, nothing happens. But my favorite and always possible option, total failure resulting in crash.
As for graphical effects... it's complicated and requires editing on a number of fronts. First you need to attach a helper to something the Hero is going to wear. This means creating an animated mesh as a clothing item. This helper is where the effect will spawn when worn. We'll call our helper... HDMY_LIGHT_POINT
Your first thought might be to try the CParticleAttacherDef for linking the effect to your new helper. This is actually a good thought, unfortunately it is also wrong. What you want to do instead is edit the CHeroMorphDef and add a new entry in one of the effects sections (I'm sure that it absolutely matters which one, but I am not sure which you need to use - if it crashes or something worse happens, try the other). Throw in the names.bin offset for our helper (click the ... and look for LIGHT_POINT). And make sure the dependent stat is set to base. If you're unsure what number is base - it's 2.
Load up Fable, wear your edited/created item and watch in amazement and/or get a crash or worse. Enjoy.
This knowledge was passed down from the first age, and this was first accomplished by Keshire.
|
|
|
|
Re: Clothing Enchantments [message #69170 is a reply to message #69168] |
Sun, 21 July 2013 13:06 |
|
JohnDoe
Messages: 3007 Registered: October 2007
|
Retired
|
|
|
It's simples. You were doing mesh work, right? Well, you can take a look at a chest armor piece, or the torso of the Hero. Look at the bones. You'll see helpers for the scabbard, where the Hero puts his weapon away, mixed in with the bones. This is so that when the Hero moves, the helper will move with him. You can use that as an example of how to add helpers to meshes (it can all be done in notepad if you're leet).
The rest is definition edits. Just copypasta and effects listing in the CHeroMorphDef, change which effect is used, change the helper the effect is attached to, and change the base stat. All of which is explained in my last post. See? Simples.
I'm gonna have to start doing some of this stuff to show you boy scouts how it's done.
[Updated on: Sun, 21 July 2013 13:06] Report message to a moderator
|
|
|
Re: Clothing Enchantments [message #69172 is a reply to message #69170] |
Sun, 21 July 2013 13:54 |
|
Sparrow
Messages: 576 Registered: March 2011
|
|
|
|
JohnDoe wrote on Sun, 21 July 2013 16:06 | I'm gonna have to start doing some of this stuff to show you boy scouts how it's done.
|
Yes please. Tutorials. Every kind. I need them because I'm going to mod Skyrim and I have no idea how to yet. I know they use skinwrap instead of skin modifiers and they mod with the "creation kit" but that's all I know about Skyrim modding. And I hope fable modding is similar
Are you shpongled?
[Updated on: Sun, 21 July 2013 13:54] Report message to a moderator
|
|
|
|