So I have created a basic eat/learn a skill in my game without using plugins. As none of them I have found achieves what I want to do.
Using: Yanfly's
Core Engine, Battle Engine, Message Core, Targeting Core, X Selection Control
You have the actual skill which all it needs to do is call on a common event Demon Sealing, and adds a state to the enemy also called Demon Sealing.
The common event simply needs to activate a switch to activate the event in the battle.
The state does nothing aside from give a status to the enemy to tell the event to only activate if the enemy inflicted with this state.
It is assigned to remove at battle end, and the turn the enemy is stricken with it.
All the eventing is within the enemy itself.
Condition: Demon Sealing Span: Turn
◆If:#1 Bat is affected by Demon Sealing
◆If:Player has learned Syphon
◆Text:None, Window, Bottom
: :\n[1] Already knows this skill.
◆Wait:60 frames
◆Control Switches:#0002 Demon Sealing = OFF
◆
:Else
◆Change Enemy State:#1 Bat, + Knockout
◆Change Skill:Player, + Syphon
◆Text:None, Window, Bottom
: :\n[1] has learned Syphon!
◆Wait:60 frames
◆Control Switches:#0002 Demon Sealing = OFF
◆
:End
◆
:End
Everything works fine except the has learned text box it never shows.
Would like some help figuring out why this text box never appears.
Edit: If I set the skill to a 100% chance of working then everything works fine, but I would prefer it to be like a 25% chance of working.
Edit 2: Changed Span to Turn so that the already learned message will show each time you try to use the skill.
Using: Yanfly's
Core Engine, Battle Engine, Message Core, Targeting Core, X Selection Control
You have the actual skill which all it needs to do is call on a common event Demon Sealing, and adds a state to the enemy also called Demon Sealing.
The common event simply needs to activate a switch to activate the event in the battle.
The state does nothing aside from give a status to the enemy to tell the event to only activate if the enemy inflicted with this state.
It is assigned to remove at battle end, and the turn the enemy is stricken with it.
All the eventing is within the enemy itself.
Condition: Demon Sealing Span: Turn
◆If:#1 Bat is affected by Demon Sealing
◆If:Player has learned Syphon
◆Text:None, Window, Bottom
: :\n[1] Already knows this skill.
◆Wait:60 frames
◆Control Switches:#0002 Demon Sealing = OFF
◆
:Else
◆Change Enemy State:#1 Bat, + Knockout
◆Change Skill:Player, + Syphon
◆Text:None, Window, Bottom
: :\n[1] has learned Syphon!
◆Wait:60 frames
◆Control Switches:#0002 Demon Sealing = OFF
◆
:End
◆
:End
Everything works fine except the has learned text box it never shows.
Would like some help figuring out why this text box never appears.
Edit: If I set the skill to a 100% chance of working then everything works fine, but I would prefer it to be like a 25% chance of working.
Edit 2: Changed Span to Turn so that the already learned message will show each time you try to use the skill.