[D2Mod plugin] SetStat

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

Moderators: Nefarius, Yohann, SVR

User avatar
Havvoric
Moderator
Champion of the Light
Posts: 392
Joined: Mon Apr 12, 2004 1:12 am
Location: Newcastle upon Tyne
Great Britain

[D2Mod plugin] SetStat

Post by Havvoric » Mon Apr 25, 2005 8:08 pm

I'm pleased to present a new plugin, SetStat, which is currently available from here.

This fulfills a long-held dream of RicFaith's to allow a character's stats to be directly controlled from a cube recipe.

The included readme gives a couple of examples of use, but feel free to ask questions, or give suggestions for extensions.

User avatar
I_only_pressed_Esc
Forum Regular
Angel
Posts: 630
Joined: Wed Jan 28, 2004 2:47 am
Location: In the darkest corners of your mind

Re: [D2Mod plugin] SetStat

Post by I_only_pressed_Esc » Mon Apr 25, 2005 8:14 pm

Does the stats entered only effect the char or can it be used otherwise :?: :?:
Custom health-mana bubbles. Custom loading video's. Custom Hireling graphics.
'Do what thou wilt shall be the whole of the Law'

User avatar
Havvoric
Moderator
Champion of the Light
Posts: 392
Joined: Mon Apr 12, 2004 1:12 am
Location: Newcastle upon Tyne
Great Britain

Post by Havvoric » Mon Apr 25, 2005 8:16 pm

The stat is added to the character, so can be used anywhere a character stat can.
What are you wanting to use it for? If you tell me that, I can tell you whether this is useful for that purpose.

User avatar
I_only_pressed_Esc
Forum Regular
Angel
Posts: 630
Joined: Wed Jan 28, 2004 2:47 am
Location: In the darkest corners of your mind

Re: [D2Mod plugin] SetStat

Post by I_only_pressed_Esc » Mon Apr 25, 2005 9:11 pm

Sorry, too quick at reading the info :( (and seeing it's not item based) But how about doing an item based plugin.

But this is a good plugin for D2Mod. :)

Things are advancing fast in this aspect, soon we won't have to do much editing with regards to code for "medium" things. :)

EDIT
Sorry the "medium" reference sounds demeaning, which it wasn't meant to be. :)
Last edited by I_only_pressed_Esc on Mon Apr 25, 2005 9:14 pm, edited 1 time in total.
Custom health-mana bubbles. Custom loading video's. Custom Hireling graphics.
'Do what thou wilt shall be the whole of the Law'

User avatar
NightStar
Banned
Crusader
Posts: 90
Joined: Mon Jan 03, 2005 11:23 am

Re: [D2Mod plugin] SetStat

Post by NightStar » Mon Apr 25, 2005 10:08 pm

What does this plugin do, i dont get it?

And i think next plugin should be for new quests :P
"I am that one star shining brightly in the night" - NightStar

User avatar
Havvoric
Moderator
Champion of the Light
Posts: 392
Joined: Mon Apr 12, 2004 1:12 am
Location: Newcastle upon Tyne
Great Britain

Post by Havvoric » Mon Apr 25, 2005 10:45 pm

It allows cube recipes to be created which do things like add experience, skill points, as well as obvious character stats, such as strength.

User avatar
TrueMage
Hosted Forum Moderator
Principality
Posts: 2072
Joined: Thu Jun 24, 2004 7:58 am
Location: Elemental Conflux
Russia

Re: [D2Mod plugin] SetStat

Post by TrueMage » Tue Apr 26, 2005 5:21 am

Cool plugin! For a long time I wanted to give the player experience for use of some cube recipes. Now I may! :)

One question: Is it possible to add possibility to do same for stats with parameters (for example +X to single skill)? It would be magnificent. :)

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

Re: [D2Mod plugin] SetStat

Post by RicFaith » Tue Apr 26, 2005 8:16 am

[quote=I_only_pressed_Esc";p="221827"]Sorry, too quick at reading the info :( (and seeing it's not item based) But how about doing an item based plugin.

But this is a good plugin for D2Mod. :)

Things are advancing fast in this aspect, soon we won't have to do much editing with regards to code for "medium" things. :)

EDIT
Sorry the "medium" reference sounds demeaning, which it wasn't meant to be. :)[/quote]

Item based? But if you're using the cube, you can already give stuff to items? "useitem" and whatever you want via the mod columns. What you can't affect are the character stats.

---

NightStar, the plugin allows you to give +X to a character stat. Usually you can only add to items, or perhaps create charms so that you can put them in inventory to get the effects. Now you can directly modify the character stats. So a cube recipe that give +5 to strength is directly possible.

---

Heh yes of course I'm excited abt this :)

User avatar
I_only_pressed_Esc
Forum Regular
Angel
Posts: 630
Joined: Wed Jan 28, 2004 2:47 am
Location: In the darkest corners of your mind

Re: [D2Mod plugin] SetStat

Post by I_only_pressed_Esc » Tue Apr 26, 2005 9:51 am

Item based? But if you're using the cube, you can already give stuff to items? "useitem" and whatever you want via the mod columns. What you can't affect are the character stats.
Oh,dear............ I just don't know where my brain is sometimes :oops:
Custom health-mana bubbles. Custom loading video's. Custom Hireling graphics.
'Do what thou wilt shall be the whole of the Law'

User avatar
Kraj
Retired staff
Angel
Posts: 955
Joined: Tue May 28, 2002 8:57 pm
Location: Chicago, IL, USA

Post by Kraj » Tue Apr 26, 2005 3:56 pm

Oh, Havvoric....you're beautiful, just beautiful. *Wipes tears from eyes* You've just made my crafting mod possible. I...oh just come give me a hug, you!

User avatar
Havvoric
Moderator
Champion of the Light
Posts: 392
Joined: Mon Apr 12, 2004 1:12 am
Location: Newcastle upon Tyne
Great Britain

Post by Havvoric » Tue Apr 26, 2005 4:07 pm

Calm down, the next version should be a bit more deserving of jubulation!

User avatar
Kraj
Retired staff
Angel
Posts: 955
Joined: Tue May 28, 2002 8:57 pm
Location: Chicago, IL, USA

Post by Kraj » Tue Apr 26, 2005 6:53 pm

I don't know if I can handle it. My brain might just explode right then and there!

delixer
Junior Member
Paladin
Posts: 164
Joined: Fri Feb 06, 2004 4:02 am

Post by delixer » Wed Apr 27, 2005 4:49 am

Would this allow me to make a potion that, when right-clicked, it would add to a players stat, permantently? I remember seeing a post where I think Kingpin might have found a txt based solution, but I cannot for the life of me find it.
Image

User avatar
TrueMage
Hosted Forum Moderator
Principality
Posts: 2072
Joined: Thu Jun 24, 2004 7:58 am
Location: Elemental Conflux
Russia

Re: [D2Mod plugin] SetStat

Post by TrueMage » Wed Apr 27, 2005 5:03 am

[quote=delixer";p="222025"]Would this allow me to make a potion that, when right-clicked, it would add to a players stat, permantently? I remember seeing a post where I think Kingpin might have found a txt based solution, but I cannot for the life of me find it.[/quote]
No. It is for moment when cube recipe works, not for when You right-clics on items. I think You search this?

User avatar
Havvoric
Moderator
Champion of the Light
Posts: 392
Joined: Mon Apr 12, 2004 1:12 am
Location: Newcastle upon Tyne
Great Britain

Post by Havvoric » Wed Apr 27, 2005 8:53 am

Nightstar: while a completely soft coded quest system is understandably a holy grail for mod makers, for code editors, it is almost as hard to acquire

User avatar
Kraj
Retired staff
Angel
Posts: 955
Joined: Tue May 28, 2002 8:57 pm
Location: Chicago, IL, USA

Post by Kraj » Wed Apr 27, 2005 3:53 pm

Have patience, grasshopper. It may be quite some time before it's released but I'm pretty darn sure you'll see it from someone who's done it.

Havvoric, since you've hinted the next version of this plugin is on the way and much better, might we know what features to expect as I'm already working on a minimod based on this?

User avatar
Havvoric
Moderator
Champion of the Light
Posts: 392
Joined: Mon Apr 12, 2004 1:12 am
Location: Newcastle upon Tyne
Great Britain

Post by Havvoric » Wed Apr 27, 2005 4:09 pm

Well, at the moment, all the work is done through two hard-coded routines. The next version (not started) will use entries from properties.txt to allow more features to be added (hopefully including) TrueMage's suggestion of
Is it possible to add possibility to do same for stats with parameters (for example +X to single skill)? It would be magnificent.

User avatar
Kraj
Retired staff
Angel
Posts: 955
Joined: Tue May 28, 2002 8:57 pm
Location: Chicago, IL, USA

Post by Kraj » Wed Apr 27, 2005 4:49 pm

Neat-o! Thanks for the 411, I don't think the next version will affect my design. I'm off to mod...

EDIT: So I was looking at the readme and I noticed something confusing. In the examples you provide, you use strength as the stat being adjusted, which is why modparam is zero when the property is called. But that is very confusing because normally when you see modparam as zero that means it is not used. It might be helpful to choose another stat for the example so it is obvious that modparam is referring to the stat ID in itemstatcost, or maybe spell that out in the readme as well.
Last edited by Kraj on Wed Apr 27, 2005 9:02 pm, edited 1 time in total.

User avatar
Havvoric
Moderator
Champion of the Light
Posts: 392
Joined: Mon Apr 12, 2004 1:12 am
Location: Newcastle upon Tyne
Great Britain

Post by Havvoric » Wed Apr 27, 2005 9:46 pm

Okay, thanks. I must admit, I'd never considered that! I will use another example in the next version. Thanks.

Return to “PlugY|NefEx|D2Mod”