This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] Overpower help?  (Read 818 times)

The0dark0one

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
[SOLVED] Overpower help?
« on: May 20, 2015, 09:18:00 pm »
I'm using Mangoszero and I taught overpower to a character that is not a warrior.  For some reason, this broke he spell and it no longer becomes active after an enemy dodge.  

I assume this means that it is hard coded into the source.  Does anyone know where or how this is coded?  Secondly, how I can change it to work for any class?
« Last Edit: May 22, 2015, 06:40:32 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Overpower help?
« Reply #1 on: May 21, 2015, 12:20:18 am »
Warrior spells in general tend to need to have correct Stance active (so learning them alone won't give you possibility to cast them, but Overpower doesn't seem to have Stance-dependencies). They also cost rage. So if your character has basicaly 0 rage while its not a Warrior and has no Stance active while it (probably) doesn't even know any, how can it possibly cast Overpower (or any other Warrior spell)? Spell isn't broken and I don't believe that there is any "class restriction".

I would suggest you to try to learn some Stance ablitty and/or use it and also to use .mod rage 100 on you. And how to make this accessible to players? Well, the best way I can imagine is creating duplicite spells without any cost, or with mana/energy/runic power/runes costs for certain classes so they can use it.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

The0dark0one

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: Overpower help?
« Reply #2 on: May 22, 2015, 06:39:27 am »
Turns out my assumptions about the source code were correct, and I found the code too.  It was located in unit.cpp.

Code: [Select]
// Overpower on victim dodge
 if (procExtra & PROC_EX_DODGE && GetTypeId() == TYPEID_PLAYER && getClass() == CLASS_WARRIOR)
      StartReactiveTimer(REACTIVE_OVERPOWER);              
            }

I just removed/changed the class requirements and voila, it works now.  The same was true for counterattack which was also giving me trouble.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [SOLVED] Overpower help?
« Reply #3 on: May 22, 2015, 08:43:57 am »
Well, quite that surprised me. Thanks for posting the result of your search :).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz