Background:
My system works like this:
Weapon: Revolver
Replaces Attack with "Shoot" skill
Replaces Guard with "Reload" skill
PLUGIN: This is accomplished via Visustella plugin: Weapon Unleash
There are 3 resource items related to both skills
1.Bullet
2.Loaded Bullet_actor1
3.Loaded Bullet_actor2
The Reload skill uses a common event
1. Check the active actor via conditional branch:
BattleManager._subject.actorId()===1
It then converts Bullets into either Loaded Bullet_actor1 or Loaded Bullet_actor2 based on whichever actor is active.
The Shoot skill uses a common event which checks the active actor via the same conditional branch as the Reload skill.
1. It checks for one of the two loaded bullet types according to the active actor.
2. If there's sufficient loaded bullets it subtracts a loaded bullet and deals damage etc.
3. If there's insufficient loaded bullets it plays a *click* sound.
Goal:
During battle I want the player to know how many bullets are loaded in the inputting actor's equipped firearm. This information needs to be available at a glance - so without needing to open an inventory menu.
What I've Tried:
I had renamed the Shoot skill to: Shoot \V[8]
This displays a variable in the skill name which is a step in the right direction.
The first problem is I have 2 types of loaded bullets for the Shoot skill, so this variable needs to be set to the number of Loaded Bullet_actor1 or Loaded Bullet_actor2 in the inventory.
I've tried creating a common event which checks the actor via conditional branch:
if BattleManager.actor()===1
Control variable: variable 8 = Bullet Loaded_actor1
if BattleManager.actor()===2
Control variable: variable 8 = Bullet Loaded_actor2
The Problem:
I can't seem to find a way to get this common event to run when the actor is selecting commands.
I've tried troop events, but using the Turn condition has it running before the actor is determined to the BattleManager returns an error due to a null value.
I feel like I'm super close to figuring this out, but would appreciate some guidance.
My system works like this:
Weapon: Revolver
Replaces Attack with "Shoot" skill
Replaces Guard with "Reload" skill
PLUGIN: This is accomplished via Visustella plugin: Weapon Unleash
There are 3 resource items related to both skills
1.Bullet
2.Loaded Bullet_actor1
3.Loaded Bullet_actor2
The Reload skill uses a common event
1. Check the active actor via conditional branch:
BattleManager._subject.actorId()===1
It then converts Bullets into either Loaded Bullet_actor1 or Loaded Bullet_actor2 based on whichever actor is active.
The Shoot skill uses a common event which checks the active actor via the same conditional branch as the Reload skill.
1. It checks for one of the two loaded bullet types according to the active actor.
2. If there's sufficient loaded bullets it subtracts a loaded bullet and deals damage etc.
3. If there's insufficient loaded bullets it plays a *click* sound.
Goal:
During battle I want the player to know how many bullets are loaded in the inputting actor's equipped firearm. This information needs to be available at a glance - so without needing to open an inventory menu.
What I've Tried:
I had renamed the Shoot skill to: Shoot \V[8]
This displays a variable in the skill name which is a step in the right direction.
The first problem is I have 2 types of loaded bullets for the Shoot skill, so this variable needs to be set to the number of Loaded Bullet_actor1 or Loaded Bullet_actor2 in the inventory.
I've tried creating a common event which checks the actor via conditional branch:
if BattleManager.actor()===1
Control variable: variable 8 = Bullet Loaded_actor1
if BattleManager.actor()===2
Control variable: variable 8 = Bullet Loaded_actor2
The Problem:
I can't seem to find a way to get this common event to run when the actor is selecting commands.
I've tried troop events, but using the Turn condition has it running before the actor is determined to the BattleManager returns an error due to a null value.
I feel like I'm super close to figuring this out, but would appreciate some guidance.