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]KGC cooperation skills (team combo)

Code:
module KGC
  # ◆連繋スキル配列
  #  ≪[発動スキルID, [必要スキルID1, 必要スキルID2, ...]]≫
  #  配列なので、忘れずに , で区切ってください。
  CS_SKILLS = [
    # スパイラルフレア
    [101, [7, 60]],
    [101, [8, 60]],
    [101, [9, 60]],
  ]  # -- Don't delete this line! --

  # ◆敵連繋スキル許可
  #  true にすると、敵も連繋スキル判定を行う。
  CS_PERMIT_ENEMY = true

  # ◆連繋元スキル発動許可
  #  true にすると、連繋元となるスキルもすべて発動する。
  #  false にすると、連繋スキルのみ発動する。
  #  (≪Active Count Battle≫では、最後の連繋元スキルにのみ影響)
  CS_EXECUTE_ORIGIN_SKILL = false
end

#### CS_SKILLS
### Array of "Cooperation Skill".
#  << ["Cooperation Skill" ID, [Necessary skill ID 1, ID 2, ...]] >>

#### CS_PERMIT_ENEMY
### Enables enemy to execute "Cooperation Skill".

As the script says, CS_SKILLS is where you put your 'cooperation skill' and required skill IDs. Like this:
Code:
#if you have a skill named 'Flare Storm' whose id is 47, and you want to cast 
#it by casting 'Fire' and 'Tornado' whose ids are 12 and 20, it would be like
#this:
  CS_SKILLS = [
    # Flare Storm
    [47, [12, 20]],    
  ]  # -- Don't delete this line! --

And CS_PERMIT_ENEMY thing, if you set it 'true', it allows enemies to use cooperative skill.
 

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