Posts: 4,615
Threads: 548
Joined: Dec 2009
04-30-2023, 10:21 AM
(This post was last modified: 10-16-2024, 03:13 AM by kyonides.
Edit Reason: New Demos
)
KBlockStates XP
by Kyonides
Introduction
This script prevents your heroes or your enemies from choosing a target that is still afflicted by a Blocked Target alias Untargetable State.
Set the value of the TARGET_STATE Constant found in the KBlockStates module to your Untargetable State ID.
Other Notes
This scriptlet seems to work with the default battle system so feel free to try it in your game project.
I have not tested it while using any other battle system.
The only reason why I came up with this idea was because Hime's script had a weird bug that has remained untouched ever since 2015...
Terms & Conditions
Free for use in your game.
Include my nickname in your game credits.
That's it.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,615
Threads: 548
Joined: Dec 2009
A Convenient Script Update!
This new installment of my enigmatic script now prevents you from using skills that target enemies if there is no enemy free of the Block Target State aka Untargetable State. Since the attack command is just a call to the Attack skill, it also gets blocked in no time. This prevents you from getting a no index error at all.
Happy Waiting Till Your Target Gets Unblocked!
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,615
Threads: 548
Joined: Dec 2009
05-05-2023, 08:48 AM
(This post was last modified: 05-05-2023, 09:02 AM by kyonides.)
A New Port is Available!
There is a new port to RMXP, guys!
It is not just an adaptation, it also includes 2 new features!
Available States:
- Traditional Block Target or Untargetable State
- No Attack State - Simple Attacks Get Blocked!
- No Healing State - Healing Skills Get Blocked!
Keep in mind that I have already renamed the scripts. Thus, now refer to them as the KBlockStates scripts.
Don't forget to ask Sylvia about the "Bad States" whenever you see her!
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,615
Threads: 548
Joined: Dec 2009
The Scripts Have Been Updated!
Now it allows you to set different Block States in a list (an Array [something, here] object).
I don't know why I had to do it, but some forumer made the request anyway.
Some script commands have been shortened for convenience.
You know, RMXP's script call box is a little small.
The RMVX ACE port also includes a bug fix for the Healing Block State.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,615
Threads: 548
Joined: Dec 2009
05-08-2023, 05:35 PM
(This post was last modified: 05-08-2023, 05:41 PM by kyonides.)
Another Update Has Arrived!
This time it includes a check or two to make sure some of the previous features work as intended. That is specially true for XP that now includes an add-on for the Default Battle System. In VX Ace case, it includes the inability to use items to favor some untargetable friend or even a foe!
Even so, that's not the end of it!
Now it allows you to magically (RM state-wise) Seal Your Bag!
I know, that doesn't sound like a popular feature, does it?
But don't worry, my friends! It only works in battle and for certain heroes, the ones afflicted by that state.
Or did you even think for a moment that mobsters like and others would love to see you consume potions and elixirs to get cured or replenish your mana points right away?
Of course not!
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,615
Threads: 548
Joined: Dec 2009
07-10-2023, 02:32 AM
(This post was last modified: 07-10-2023, 02:33 AM by kyonides.)
Small Update
Version 1.0.0 for RMVX ACE has been published and it brings a change in how "untargetable" your foes are.
If you need the state to TOTALLY prevent your foes AND your allies from choosing a battler with that specific state, include the state ID in the TOTAL_BLOCK_TARGET_STATES array.
Perhaps you might prefer to just block your foes from targeting you, then include the state ID in the PARTIAL_BLOCK_TARGET_STATES array instead.
Code: module KBlockStates
ATTACK_STATE = 26
HEALING_STATE = 27
SEALED_BAG_STATE = 28
# Pick your favorite Blocked Target State IDs, i.e. [3, 5, 7]
TOTAL_BLOCK_TARGET_STATES = [29]
PARTIAL_BLOCK_TARGET_STATES = [30]
def self.random_target_state_id
pos = rand(TOTAL_BLOCK_TARGET_STATES.size)
TOTAL_BLOCK_TARGET_STATES[pos]
end
end
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,615
Threads: 548
Joined: Dec 2009
08-14-2023, 01:32 AM
(This post was last modified: 08-14-2023, 01:32 AM by kyonides.)
ACE Targets Updated!
Since ACE version 1.1.0 has been released, you are now able to pick a skill scope, namely All Enemies and leave a specific note in the Skill Note Box to apply its effects on Dead Enemies only.
Note Tag for Dead Enemies
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,615
Threads: 548
Joined: Dec 2009
XP Targets Updated!
Since XP version 1.1.0 has been released, you are now able to pick a skill scope, namely All Enemies and configure a Skill by adding a specific State (+) to its States List and it will apply its effects on Dead Enemies only.
This is how the KBlockStates module looks like nowadays.
Code: module KBlockStates
NO_TARGET_FOUND = "%s failed to launch the attack."
ATTACK_STATE = 17
HEALING_STATE = 18
NO_GUARD_STATE = 19
SEALED_BAG_STATE = 20
DEAD_ENEMIES_STATE = 23
# Pick your favorite Blocked Target State IDs, i.e. [3, 5, 7]
TOTAL_BLOCK_TARGET_STATES = [29]
PARTIAL_BLOCK_TARGET_STATES = [30]
def self.random_target_state_id
pos = rand(TOTAL_BLOCK_TARGET_STATES.size)
TOTAL_BLOCK_TARGET_STATES[pos]
end
end
Pay attention to the DEAD_ENEMIES_STATE Constant because you need to set the right State ID for your game.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
|