help with how to make a limit break setup

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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:

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
229
Reaction score
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?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
28,969
Reaction score
6,667
First Language
German
Primarily Uses
RMMV
it works but the skill can be used even when it hasnt been learnt
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.
 

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
229
Reaction score
74
First Language
German
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.
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:

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
<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?
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)
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
<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?
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.
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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
i am using the unleash plugin this is what its about.
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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.
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
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
28,969
Reaction score
6,667
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:
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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:
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
 

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
229
Reaction score
74
First Language
German
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:
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.

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.
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.
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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.
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)
 

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
229
Reaction score
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.
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
Ok, can you copy the content from the notebox with that Custom Replace Attack notetag?

It seems there is a typing error in it.
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
28,969
Reaction score
6,667
First Language
German
Primarily Uses
RMMV
I copied n paste what you put so its the same
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.
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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.
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:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
28,969
Reaction score
6,667
First Language
German
Primarily Uses
RMMV
Typo

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

should be

Code:
} else {
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
Typo

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

should be

} else {
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?
 

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
229
Reaction score
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.
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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.
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Welp... with numerous plugins and a bit of Javascript help, I've simulated an AP system in battle. Proud of myself honestly.
Why most of games like to give a horrible control to an aircraft vehicle? can I get a simplified control that does not require me to roll first just to change my direction?
Homie, this so amazing! Old but Gold :)
I cannot get the Benny Hill Theme out of my head
A wave of cold air has hit Canada... I know it's "always cold", but this one is especially cold... I'm freezing to death lol.

Forum statistics

Threads
93,426
Messages
912,240
Members
122,931
Latest member
ramirezrubio
Top