Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
Hi guys, is there a simple script that i can use to pop an alert on screen while testing game?
like alert("ABC");
Thanks
 

Nightblade50

Veteran
Veteran
Joined
Nov 10, 2016
Messages
2,175
Reaction score
4,288
First Language
English, French
Primarily Uses
RMVXA
Maybe you should say whether you are using XP, VX, or VX Ace. There are slight changes in the code for each of those versions, even though they are all RGSSx.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,196
Reaction score
848
First Language
Hungarian
Primarily Uses
RMVXA
Use the console, that is there for debugging.
To print out messages to the console, you can use these script calls:
Code:
print "your text here"  # No auto-line break at the end!
p "your text here"      # Auto-line break used at the end!
puts "your text here"   # Auto-line break used at the end!
The console will print out whatever you tell it to, and it's much less annoying than a popup window.
All 3 of the above methods will do the same, more or less, except the first one will not add a line break at the end automatically, so using multiple print calls will join the texts eventually.
 
Last edited:

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,196
Reaction score
848
First Language
Hungarian
Primarily Uses
RMVXA
There should be an option to enable it in the editor, something like "Show console".
Enable that and the console will automatically open with the game during playtests.
 

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
There should be an option to enable it in the editor, something like "Show console".
Enable that and the console will automatically open with the game during playtests.
Sorry @Sixth but now testing my game, it seem those codes you suggested doesn't work
my console is blank
upload_2018-3-11_14-22-36.png

While i have this common event run parallel on map
upload_2018-3-11_14-23-12.png
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,170
Reaction score
7,377
First Language
Indonesian
Primarily Uses
RMVXA
It does work. Instead of putting on complex event, why not confirming if it works or not at first?
You make an event, action button trigger, puts that script call, see if console prints anything
If it prints, then there must be something wrong in your event.
 

Latest Threads

Latest Posts

Latest Profile Posts

We're playing Omori by OMOCAT starting at 2pm est :D
Hi there! Do you actively use your Itch.io account? How do you use it?
When you have your friend over and you try to have a good time and let him try your game but he legit finds 10+ bugs that you now have to add to your already big workload for the day lol.

Forum statistics

Threads
111,336
Messages
1,060,252
Members
144,654
Latest member
alexvg13
Top