Changing attack damage of weapons with variables

Started by MinorX on Wed, 02/24/2016 - 00:15
Last seen on 08:25, 22. Dec 2017
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Changing attack damage of weapons with variables
Wed, 02/24/2016 - 00:15

So, an idea I had for an RPG-esque mod was, a stat points system, where you'd be able to increase your stat points (Strength, agility, etc) which would influence speed and things like that.

Well, now i'm stuck on how to make the strength stat (as a variable) change the attack damage that weapons from the mod would do. Like, when it gets higher it'd multiply the attack damage a certain amount, i.e instead of the attack damage being just "10" or something, more like "10 * x" where x is the strength stat. If this is possible, please respond! And if you need to know for some reason what mcreator version I'm using, it's 1.6.5, MC 1.8.9.

Last seen on 22:14, 21. Nov 2017
Joined Dec 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Interesting concept.
Fri, 03/11/2016 - 22:38

Interesting concept.

Although I don't really have an answer, you could try doing something like when you reach a certain level, it removes the current weapon and replaces it with a higher-tier?

Sorry, I'm a noob when it comes to coding, but it's just a suggestion. Maybe you could look around the forums?

Last seen on 03:24, 15. Dec 2017
Joined Dec 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
i will look in to it. i might
Sat, 03/12/2016 - 02:05

i will look in to it. i might have an idea....

Last seen on 08:32, 22. Dec 2017
Joined Sep 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:i will look in to it. i might
Tue, 03/15/2016 - 23:40

@#2 did this idea of yours happen to turn out well?