Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] Help with Trickster's Advanced Battle Commands

Status
Not open for further replies.

Jonny

Member

How do I make it so that when the limit break bar is full the attack command changes to limit break? I'm using DerVVulfman's limit break script v1.1 and the limit break element id is 17. Sorry if this question has already been answered somewhere else.

Edit: Ok, I've tried different things such as
special_learn $game_actor.limitbreak == 1000
but it always comes out with this error message when a battle starts:

NoMethodError occured while running script.

undefined method 'limitbreak' for nil:NilClass
 
Hey you rolled the dice I only corrected what you did

Okay

The condition for the attack command should be this

Code:
actor.limitbreak < 1000

The condition for the limitbreak command should be this

Code:
actor.limitbreak >= 1000

Try those
 
Well of course it does

Code:
#--------------------------------------------------------------------------
# * Command Id 12 : Limit Break
#   Description   : Limit Break skill when bar is full
#--------------------------------------------------------------------------
id		12
name		Limit Break
[B]kind		0[/B]
special_learn	actor.limitbreak == 1000
skill_set	skill.element_set.include?(17)
next_method	start_skill_select

#--------------------------------------------------------------------------
# * Command Id 13 : Summon
#   Description   : Summons powerful creatures or spirits
#--------------------------------------------------------------------------
id		13
name		Summon
[B]kind		0[/B]
skill_set	skill.element_set.include?(18)
next_method	start_skill_select
 

Jonny

Member

Yay, it works almost perfectly! I need to pay more attention. It's not quite perfect though because the limit break skills still appear in skills. How do I fix that?
 
Replace it with this

Code:
!skill.element_set.includes_any?(17,18)

includes_any? returns true if any of the parameters sent to the method is included in the array you could alternatively do

Code:
!(skill.element_set.include?(17) || skill.element_set.include?(18))
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top