Aller au contenu

Photo

Deep Mushrooms: Stamina regain value


  • Veuillez vous connecter pour répondre
12 réponses à ce sujet

#1
chizow

chizow
  • Members
  • 212 messages
Is there any easy way to change the value of how much Stamina is regained with Deep Mushrooms?  I looked in the General crafting item and didn't see a changeable value.  I think this simple change would go a long way into making melee/physical characters a viable alternative to magic users, thanks!

#2
Astorax

Astorax
  • Members
  • 324 messages
It's probably a static entry in a 2da somewhere, not an item property in the toolset...if I were guessing.

#3
chizow

chizow
  • Members
  • 212 messages

Astorax wrote...

It's probably a static entry in a 2da somewhere, not an item property in the toolset...if I were guessing.

Ah cool, thanks, I'll take a look and see if its easily changed, I read a few other posts indicating its some xls file with a bunch of values so it shouldn't be too hard to change if its clearly denoted in there. 

#4
Astorax

Astorax
  • Members
  • 324 messages
yeah, generally it's the "clearly denoted" part which is kinda rough to figure out. :)

#5
Nodrak

Nodrak
  • Members
  • 144 messages
From item_singletarget.nss:
<snip>
case ABILITY_ITEM_DEEP_MUSHROOM:
...
eEffect = EffectModifyManaStamina(DEEP_MUSHROOM_STAMINA);
<snip>

DEEP_MUSHROOM_STAMINA is hardcoded in item_constants_h.nss:
<snip>
const float DEEP_MUSHROOM_STAMINA = 10.0f;
<snip>

#6
DangerousFat

DangerousFat
  • Members
  • 18 messages
So, I hate to bug people on this because I know the info is there somewhere and I'm just missing it, but can someone point me to a tutorial that will show me how to make an override for that file without having to modify the core game?

#7
orpheus333

orpheus333
  • Members
  • 695 messages
i'm currently working on a stamina potion/poultice project and am running into similar issues...hopefully i can get through them though and work out this maze that is item abilities. give me the rest of today and hopefully ii can figure it out.

#8
DangerousFat

DangerousFat
  • Members
  • 18 messages
Yeah man, I know where the files are, I can export them and whatnot, I just don't really see what I need to export, where it needs to go, etc. lol

#9
orpheus333

orpheus333
  • Members
  • 695 messages
From what i've gathed Items with activated abilities act as both items and abilities so you have to edit the item ability pointers and the 2da files and then put it all back in the right place. you could just change that constant in item_constants.nss what nodrak posted above and resave it in the single player module but making an m2da overide file would probably be more stable.

Modifié par andyr1986, 17 novembre 2009 - 04:18 .


#10
DangerousFat

DangerousFat
  • Members
  • 18 messages
And where is info on how to actually do that? It's things like this that I know can be done and people talk about doing that I just can't find. Maybe I'm passing up topics that would helps because I'm looking for the wrong thing in the title. I don't know. lol

#11
orpheus333

orpheus333
  • Members
  • 695 messages
Hey, yeah sorry. Its a part of the toolset wiki.

social.bioware.com/wiki/datoolset/index.php/2DA#Extending_the_game_via_M2DAs

That might help...

#12
chizow

chizow
  • Members
  • 212 messages

Nodrak wrote...

From item_singletarget.nss:

case ABILITY_ITEM_DEEP_MUSHROOM:
...
eEffect = EffectModifyManaStamina(DEEP_MUSHROOM_STAMINA);


DEEP_MUSHROOM_STAMINA is hardcoded in item_constants_h.nss:

const float DEEP_MUSHROOM_STAMINA = 10.0f;

Thanks for pointing me in the right direction, I hit a dead end pling around in ABI_base.xls.  I was able to find these myself in the toolset under scripting but as you said, they're hardcoded read only.

#13
chizow

chizow
  • Members
  • 212 messages
DangerousFat and andyr1986, thanks for looking into a mod/fix for stamina pots, look forward to any progress you guys make. I did some searching late last night before the other forums came down and came across some posts that talked about modifying read-only scripts and creating m2DAs. Here's the most relevant of the posts, unfortunately I can't direct link or find the archived threads so its just a copy-paste of the singular post:



Posted: Wednesday, 11 November 2009 05:53PM by Gnilbert



Well, to attempt to address the original discussion, let me offer up this for core Spell modifications. It’s not pretty, but this is what I’ve done so far:

** I apologize, but I’m at work, so there’s some hand waving involved below where I can’t remember the details exactly.



To override a core spell:

First, I open the ABI_Base.xls file and look for the column where the script name is listed. I look that script up in the toolset, and read carefully through main() to find out what it does for the specific spell I’m interested in.



Next, in my “Spell Mod” module (which extends the single player campaign), I create a new script “spell_name_ovr.nss” that is “owned by” the Spell Mod but the other setting (the top one) is “Core Rules Set”



Then, I copy/paste everything from the script that originally handled the ability into the new file. I edit (my working copy, not the original) ABI_Base.xls to refer to the script I just created, then use the xls to gda converter on it and drop it into the core\\overrides folder.



Then, I export the module, load up the game, and make sure the ability still works. After that, I go back to the spell override script and tear out everything that has to do with any spell other than the one I’m overriding. Then, I export and make sure the spell still works. Assuming it does, I’m now free to modify the script further to create my custom behavior.



And that’s that, for now. Ideally, instead of overriding the whole of ABI_base, I think I could just copy the one row into a new xls and then create a m2da file, but I’m not clear on how to do the latter, so I haven’t tried it. Also, using this method, obviously only one override of the spell will be active at once, based on which gda/m2da has the final say. Finally, I’ve only used this method with minor modifications so far, like making drain life set your target on fire and heal them (as practice, not because I think the spell was borked), but I’m hoping it allows for more substantive changes.



*NOTE: As long as the extension module is loaded, the spell effect change works in the single player game as well, without ever opening that module up for editing.



Ideally, I’d like to extend this to add new spells. I haven’t done this yet, but I’m speculating I could do it by adding new abilities to the ABI_Base file, pointing them at my new scripts, and then… yeah. That’s where I get stuck. I’m not entirely sure how to add them to the spell list so they’ll appear for selection with all the rest.



Comments on mistakes or general help are appreciated,

Gnilbert




It looks like he's taking a similar approach as you guys are, creating an override m2da pointing to scripts he copied from the original read-only and modified. I'd look more into this but it sounds like both of you are already well on your way to making Stamina pot mods, I'm definitely looking forward to any updates thanks!