Custom Skill Costs.

Discussion in 'RPG Maker MV' started by RHachicho, May 8, 2018.

  1. RHachicho

    RHachicho Veteran Veteran

    Messages:
    264
    Likes Received:
    125
    Location:
    Basildon, United Kingdom
    First Language:
    English
    I've been looking around a while and I'm not sure if this is built into MV or exists somewhere. But I'd like to dictate custom MP costs for my spells. Specifically I want a spell to become more costly as a characters M.Atk grows. My max level is 1000 and at that level most characters have like 10kmpish .. So a spell they learn at level 20ish that costs like 50mp is now nothing and mp is trivialized. So I want to make it so as the spell gets more powerful it also costs more.
     
    #1
  2. shockra

    shockra Slightly Crazy Programmer Veteran

    Messages:
    406
    Likes Received:
    177
    Location:
    US
    First Language:
    English
    Primarily Uses:
    RMMV
    http://yanfly.moe/2015/10/13/yep-8-skill-core/

    Assuming you're using Yanfly's Skill Core, this is possible:

    <Custom MP Cost>
    cost = user.mat;
    </Custom MP Cost>

    The cost variable is the amount that the skill will cost. Just use a value that works with your game.
     
    #2
    RHachicho likes this.
  3. RHachicho

    RHachicho Veteran Veteran

    Messages:
    264
    Likes Received:
    125
    Location:
    Basildon, United Kingdom
    First Language:
    English
    Thank you that worked perfectly :) I thought yanfly's custom needed script which I couldn't do. But turns out it takes basic damage formula style input :)
     
    #3

Share This Page