help with how to make a limit break setup

Discussion in 'Javascript/Plugin Support' started by sirkos, Jan 5, 2016.

  1. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    i sorta got a limit break tag code....

    <Custom Replace Attack>
    if (user.tp == 100) {
    id = 50;
    } else {
    id = 0;
    }
    </Custom Replace Attack>

    it works but the skill can be used even when it hasnt been learnt

    solved!

    also when TP is set to 100 when using the limit break skill it wont play the cast animation unless the TP needed is set to 99 or less any idea how to fix this?

    what would the code be to do the same but just to add the skill as a command?

    also would this work

    <Custom Replace Attack>

    if (user.tp == 100 && user.isLearnedSkill(50, 49, 48)) {
    id = 50, 49, 48;
    } else {
    id = 0;
    }
    </Custom Replace Attack>

    http://yanfly.moe/2015/12/26/yep-51-weapon-unleash/

    LIMIT BREAKER.jpg
     
    Last edited by a moderator: Jan 6, 2016
    #1
  2. kiriseo

    kiriseo Veteran Veteran

    Messages:
    229
    Likes Received:
    74
    First Language:
    German
    <Custom Replace Attack>if (user.tp == 100 && user.isLearnedSkill(50)) {id = 50;} else [id = 0;}</Custom Replace Attack>With this, you can only use your LB when you have 100TP and learned that skill.

    I don't understand your second question.

    Do you want a second skill swapping when the charactor has 100TP in addition to the first?
     
    #2
    sirkos likes this.
  3. Andar

    Andar Veteran Veteran

    Messages:
    28,333
    Likes Received:
    6,444
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    No skill can be used if the player doesn't have it.
    Which means that somewhere in your game, the player either learns it or is given it by an equipment.


    Your problem is not a different notetag sequence, you need to find out where the actor is given that skill and remove that part.


    It might be that a plugin gives skills instead of learning, events or equipment - but the actor is given that skill by something you did in your game.
     
    #3
  4. kiriseo

    kiriseo Veteran Veteran

    Messages:
    229
    Likes Received:
    74
    First Language:
    German
    sirkos uses the Weapon Unleash plugin from Yanfly.

    With it you can give actors, weapons, etc. the ability to use skills in battle, that the actor hasn't learned.

    And you don't learn these skills through it, either
     
    Last edited by a moderator: Jan 5, 2016
    #4
  5. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    well its a good start thank you, second question as asking for a new tag code just to add a new command skill without replacing anything when the same requirements are met (same as the last tag code but no replacing attack command)
     
    #5
  6. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    also with your tag code 50= skill id yeah? and soon as a battle starts and atb charges and becomes full then i get this error....

    SyntaxError: Unexpected token ;

        at Game_Actor.Game_Battler.isReplaceAttackSkillId 

     

    then another problem im already have is if i use the tag code where you need 100TP to use the limit break its will work but cuts out the cast animation i dont know why so if i set it to 99 and not 100 then it doesnt.
     
    #6
  7. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    i am using the unleash plugin this is what its about.
     
    #7
  8. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    i can say this, actor 1 class does not learn the limit break skill and nothing else gives the skill but when the tag does work the skill is still used because in the tag there is no requirements saying that it needs to be learnt unlike the other tag someone gave me here
     
    #8
  9. Andar

    Andar Veteran Veteran

    Messages:
    28,333
    Likes Received:
    6,444
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    That is because the plugin gives the actor that skill.


    sirkos, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


    If you want to answer several people, either use multiquote or simply address then with @username:
     
    #9
  10. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    ok i didnt know that but if i use multi reply then am i posting 1 reply to multi people? its fine if multi people ask the same question multi times because the answer is the same to all
     
    #10
  11. kiriseo

    kiriseo Veteran Veteran

    Messages:
    229
    Likes Received:
    74
    First Language:
    German
    It doesn't add the skill to the actors skill list or anything like that.

    That's why

    user.isLearnedSkill(50)will return "false".

    And with this, he can avoid that the skill will be shown when the actor didn't learned it.

    Yeah, the "50" in "isLearnedSkill(50)" is the skill id of your LB.

    Can you open the console with F8 and start a battle.

    When you get  the error, please post the entire console.

    When I testet it in my Testproject, it worked without error.
     
    #11
  12. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    SyntaxError: Unexpected token ;

        at Game_Actor.Game_Battler.isReplaceAttackSkillId (/G:/rpg%20maker%20mv/game/js/plugins/YEP_WeaponUnleash.js:512)

        at Game_Actor.replaceAttackSkillId (/G:/rpg%20maker%20mv/game/js/plugins/YEP_WeaponUnleash.js:644)

        at Game_Actor.Game_BattlerBase.attackSkillId (/G:/rpg%20maker%20mv/game/js/plugins/YEP_WeaponUnleash.js:487)

        at Game_Actor.attackSkillId (/G:/rpg%20maker%20mv/game/js/plugins/WeaponSkill.js:57)

        at Game_Actor.Game_BattlerBase.canAttack (rpg_objects.js:2825)

        at Window_ActorCommand.addAttackCommand (rpg_windows.js:5388)

        at Window_ActorCommand.addAttackCommand (/G:/rpg%20maker%20mv/game/js/plugins/YEP_WeaponUnleash.js:836)

        at Window_ActorCommand.makeCommandList (rpg_windows.js:5380)

        at Window_ActorCommand.setup (rpg_windows.js:5413)

        at Scene_Battle.startActorCommandSelection (rpg_scenes.js:2266)
     
    #12
  13. kiriseo

    kiriseo Veteran Veteran

    Messages:
    229
    Likes Received:
    74
    First Language:
    German
    Ok, can you copy the content from the notebox with that Custom Replace Attack notetag?

    It seems there is a typing error in it.
     
    #13
  14. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    I copied n paste what you put so its the same i would re post that tag again but im on my ps4 with pc problems at the moment.
     
    #14
  15. Andar

    Andar Veteran Veteran

    Messages:
    28,333
    Likes Received:
    6,444
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Please give us a screenshot of the database page with that notebox.
    There are several ways how copy&paste can fail (for example if the last or first letter is not marked when copying), or it could be that you copied it to the wrong notebox (happened several times before with other users), so we need the screenshot to see where you placed what part.
     
    #15
  16. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    i added a pic for you its at the top of my first post i put the code in the actor like the last one that did work was under

    also what you cant see in the pic is 

    ) {    at the end of  isLearnedSkill(50)

    so as far as i can see nothing is missing
     
    Last edited by a moderator: Jan 6, 2016
    #16
  17. Andar

    Andar Veteran Veteran

    Messages:
    28,333
    Likes Received:
    6,444
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Typo

    In the line of the else, there is the wrong bracket opening

    should be

    Code:
    } else {
     
    #17
    sirkos likes this.
  18. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    your right thank you :)

    now on to the other question a new tag to add a new skill as a command with the same requirements?
     
    #18
  19. kiriseo

    kiriseo Veteran Veteran

    Messages:
    229
    Likes Received:
    74
    First Language:
    German
    You want another skill to be displayed besides "Attack", "Guard", "Special", "Magic", and "Item" without replacing any of them?

    You can't do that with the Weapon Unleash plugin. I don't know if any of Yanflys plugins released so far can do this.
     
    #19
  20. sirkos

    sirkos Veteran Veteran

    Messages:
    67
    Likes Received:
    1
    ok but can you solve the problem?

    in the tag script and set 100 tp needed to make tag/limit break to work, doesnt show cast animation

    if tp needed is set to 99 then it works and shows cast animation.....ok, but its annoying because tp will always goto 100 because i cant set the max to 99

    so then that tag/limit break wont work unless its bang on 99 tp
     
    #20

Share This Page