Posts: 4,638
Threads: 554
Joined: Dec 2009
10-25-2023, 01:55 AM
(This post was last modified: 11-01-2023, 01:42 AM by kyonides.
Edit Reason: Update 6
)
AlertWindow ACE
versions 1.2.0 & 0.8.0
by Kyonides
Introduction
There was a forumer that "stubbornly" wanted to use pop up windows that looked pretty much like VX ACE's default Window_MapName class. This means that it would show up the same way the map name does.
Obviously, it will not be triggered after a map transfer for obvious reasons.
Just in case you did not know this, my script allows you to pass either a single line of text or an Array of lines as its first parameter.
Don't worry, my friends! The rest of the parameters are totally optional!
Convenient Features
You can set an additional button to close the alerts.
\gs[1] gets replaced by the corresponding game switch, i.e. ON or OFF.
\v[1] gets replaced by the corresponding game variable.
Set the Alert Window's Coordinates: $game_system.set_alert_xy(X, Y)
Examples for Passing a Single Line of Text:
Code: pop_up("Some text")
Alert.add("Some text")
Examples for Passing 2+ Lines of Text:
Code: texts = ["Line1", "Line2"]
pop_up(texts)
Alert.add(texts)
Optional Parameters:
Code: pop_up(text, 60)
Alert.add(text, frames, 60)
Code: pop_up(text, 60, 1, 120, 80)
Alert.add(text, 60, 1, 120, 80)
...and a few other arguments.
Terms & Conditions
Free for use in ANY game.
Due credit is mandatory.
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,638
Threads: 554
Joined: Dec 2009
10-25-2023, 11:31 PM
(This post was last modified: 10-26-2023, 06:09 PM by kyonides.
Edit Reason: Note
)
Some Convenient Features Have Been Added to the Script!
- You can set an additional button to close the alerts.
- \gs[1] gets replaced by the corresponding game switch, i.e. ON or OFF.
- \v[1] gets replaced by the corresponding game variable.
- Set the Alert Window's Coordinates: $game_system.set_alert_xy(X, Y)
And yes, there is a link to a demo featuring the latest version of AlertWindow!
Side Note:
\gs needs to be used since version 0.8.0 because a simple \s escape character could be treated as a white space by Ruby.
"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,638
Threads: 554
Joined: Dec 2009
10-27-2023, 12:41 AM
(This post was last modified: 10-27-2023, 12:41 AM by kyonides.)
The Script Brings Brand New Extra Features Now!
The recent release of version 1.0.0 comes with some extra goodies:
- \ev[1] gets replaced with the corresponding event's name.
- \en[1] gets replaced with the corresponding enemy's name.
- \i! makes the alert take precedence over the remaining ones.
It will try to display it on screen as soon as possible.
Keep in mind that you better use 'single quotes' if you're planning to use those custom escape characters.
"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,638
Threads: 554
Joined: Dec 2009
10-29-2023, 09:31 PM
(This post was last modified: 10-29-2023, 09:39 PM by kyonides.)
The Script's Latest Feature is a Very Old one!
I know that doesn't seem to make any sense to you, but it's totally true!
Our good old friend, the text alignment that was lost in version 0.8.0 has made a great comeback in version 1.1.0, my dear friends.
And nope, you don't have to fear anything for you won't lose any of the typical escape codes at all.
Just in case you want to manually set the text alignment before a group of alerts show up, use this:
Code: $game_system.alert_align = 1
"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,638
Threads: 554
Joined: Dec 2009
A New Release Has Come!
Since version 1.2.0 came out, you can include icons in your alerts and they will get aligned just like as rest of its contents does by default.
Oh but it also includes a new feature, one I personally dislike but some forumers might find it useful under certain circumstances.
Did you ever feel like the player shouldn't move an inch while the alert is displayed on screen?
Well, some mysterious guy called Tw0Face certainly did so now anybody can set the STOP_PLAYER_MOVEMENT Constant to true to make sure the hero won't move at all.
Code: STOP_PLAYER_MOVEMENT = true
Set it to false or nil to enable all movements at any time.
Do you need to change that setting in game?
Guess what? You can do it if you feel like it!
Code: $game_system.alert_stop_player = true
"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
|