More automods on items

Discuss applications of D2Mod (v1.10), NefEx (v1.11+), and PlugY, and post suggestions for future plugins.

Moderators: Nefarius, Yohann, SVR

0
No votes
 
Total votes: 0

Montex
Junior Member
Paladin
Posts: 165
Joined: Wed Mar 31, 2004 2:05 pm

More automods on items

Post by Montex » Mon Apr 04, 2005 4:18 pm

Is it somehow posibble to add more than 3 automods with differenent values to an item. How hard it would be to extend Automagic.txt to read more collumns? Since I am not the only one having this problem maybe someone could make a plugin for D2mod?[/i]
Somewhere between reality and fantasy... Where one ends yet the other does not begin...

User avatar
Myhrginoc
Retired Admin
Cherub
Posts: 12100
Joined: Sat May 25, 2002 7:28 am
Location: Percussion U
United States of America

Hand-picked

Re: More automods on items

Post by Myhrginoc » Tue Apr 05, 2005 12:42 am

Affixes are based on information in Properties.txt. Each property can have up to seven stats on it (such as res-all with four stats). So make some special properties that have compound effects, and try those as mods in a test automagic affix.

If this does the job, you need no code editing for it.
Last edited by Myhrginoc on Tue Apr 05, 2005 12:43 am, edited 1 time in total.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening

User avatar
RicFaith
Retired staff
Arch-Angel
Posts: 1576
Joined: Fri May 24, 2002 7:12 am
Location: Back where the weather is too hot

Hand-picked

Post by RicFaith » Tue Apr 05, 2005 10:56 am

hmm and if it's insufficient? do you know the code location? I was thinking of looking into it sometime.

User avatar
kingpin
Retired Admin
Cherub
Posts: 10954
Joined: Sat Jan 11, 2003 12:51 pm
Sweden

Hand-picked

Re: More automods on items

Post by kingpin » Tue Apr 05, 2005 11:13 am

automod is a bad file in general.

A tips: Add a new file that handle that instead. If I can get some time I could add a new file.

What columns would be wanted in that file?

User avatar
RicFaith
Retired staff
Arch-Angel
Posts: 1576
Joined: Fri May 24, 2002 7:12 am
Location: Back where the weather is too hot

Hand-picked

Post by RicFaith » Tue Apr 05, 2005 12:20 pm

in addition to the addition of mods a la Automagic.txt, we could consider mods that are added to specific itemtypes, and thus give all items under that type those mods.

how would you apply these effects? hijack the automagic code?

User avatar
kingpin
Retired Admin
Cherub
Posts: 10954
Joined: Sat Jan 11, 2003 12:51 pm
Sweden

Hand-picked

Re: More automods on items

Post by kingpin » Tue Apr 05, 2005 12:37 pm

how would you apply these effects? hijack the automagic code?
Nope,

automagic code = bad

I don't remember at what point automagic adds the stat. But, I add the stat directly at unit creation instead.

Montex
Junior Member
Paladin
Posts: 165
Joined: Wed Mar 31, 2004 2:05 pm

Re: More automods on items

Post by Montex » Tue Apr 05, 2005 4:13 pm

Affixes are based on information in Properties.txt. Each property can have up to seven stats on it (such as res-all with four stats).
And all the seven affixes have the same value :(
automagic code = bad

I don't remember at what point automagic adds the stat. But, I add the stat directly at unit creation instead.
Does it mean that automagic will apply to set and uniques as well???
That would be great!

I'll be waiting for it then....
Somewhere between reality and fantasy... Where one ends yet the other does not begin...

User avatar
kingpin
Retired Admin
Cherub
Posts: 10954
Joined: Sat Jan 11, 2003 12:51 pm
Sweden

Hand-picked

Re: More automods on items

Post by kingpin » Tue Apr 05, 2005 5:35 pm

Does it mean that automagic will apply to set and uniques as well???
That would be great!
We could add a column that sets a flag.

Unique = 1 (Modifier applies to unique items)
Set = (Modifier applies to set items)

I move this thread to D2Mod and people can start come with suggestions what they want in it :)

User avatar
kingpin
Retired Admin
Cherub
Posts: 10954
Joined: Sat Jan 11, 2003 12:51 pm
Sweden

Hand-picked

Moved

Post by kingpin » Tue Apr 05, 2005 5:37 pm

*This topic has been moved from Code Editing to D2Mod and PlugY*

User avatar
Joel
Moderator
Dominion
Posts: 6921
Joined: Mon May 27, 2002 7:19 am
Location: Orsay

Hand-picked

Post by Joel » Wed Apr 06, 2005 7:58 am

Basically the automagic2.txt shoudl have columns of old automagic.txt + the following :

Unique, Set : do the automod work on those. (boolean)
columns to set the automod on a itemtypes branch not only on one items.
"How much suffering, mortal, does it take before you lose your grace?"
Shadow Empire (coming soon) | forum

User avatar
Char
Retired staff
Principality
Posts: 2498
Joined: Tue Mar 04, 2003 11:40 pm

Post by Char » Wed Apr 06, 2005 3:42 pm

hmmm. another good idea is to have the staffmods in that file, too, if possible. currently the staffmods are somehow screwed up, and adding them by hand via automagic.txt is really sucky. i am not sure how to deal with that in a good manner, though ....

User avatar
RicFaith
Retired staff
Arch-Angel
Posts: 1576
Joined: Fri May 24, 2002 7:12 am
Location: Back where the weather is too hot

Hand-picked

Post by RicFaith » Wed Apr 06, 2005 3:49 pm

i was going to try doing the itemtype automagic (like how the undead bonus for blunt should have been done) along with itemdescs, but haven't started. if I get the itemdescs, i could pass them to you (kingpin) to merge and get a full item related plugin

User avatar
kingpin
Retired Admin
Cherub
Posts: 10954
Joined: Sat Jan 11, 2003 12:51 pm
Sweden

Hand-picked

Re: More automods on items

Post by kingpin » Wed Apr 06, 2005 6:32 pm

staffmod is easy to do, so would work well to include in this plug-in also.
i was going to try doing the itemtype automagic (like how the undead bonus for blunt should have been done) along with itemdescs, but haven't started. if I get the itemdescs, i could pass them to you (kingpin) to merge and get a full item related plugin
I have already worked a lot with itemdesc. I have not yet break out the itemdesc into c to have full control of it. I have just insert code then needed :)

User avatar
Myhrginoc
Retired Admin
Cherub
Posts: 12100
Joined: Sat May 25, 2002 7:28 am
Location: Percussion U
United States of America

Hand-picked

Re: More automods on items

Post by Myhrginoc » Thu Apr 07, 2005 4:17 am

Getting away from requiring staffmod-enabled skills be available in the first contiguous block will be good for people adding or rearranging character skills. Right now, you have to copy all the character skills in a block, remove the class tag from th old records, and add your new skills --- rinse and repeat for each class --- if you want staffmods enabled for the new skills. That means adjusting skills-based stats in ItemStatCost.txt too, since any of that will kick you over Skill ID=511.
Last edited by Myhrginoc on Thu Apr 07, 2005 4:19 am, edited 1 time in total.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening

User avatar
Char
Retired staff
Principality
Posts: 2498
Joined: Tue Mar 04, 2003 11:40 pm

Post by Char » Thu Apr 07, 2005 12:53 pm

hmmm. we could, in theory, also just add all the desired staffmods via automagic.txt and the skill-rand parameter. though i guess this is after all just a semi-good idea.

Return to “PlugY|NefEx|D2Mod”