Skip to content

Commands Manual

Ed edited this page Apr 23, 2021 · 1 revision

This page will document how to use all the commands in XVN.

say "msg"

Creates a message, displaying the "msg" argument on the screen. e.g say "Not done yet!"

setbg "file.gif"

Changes the background to a certain file. GIF format only, currently. e.g setbg "bg3.gif"

setchar "file.png"

Changes the character on screen to a certain file. PNG format only, currently. e.g setchar "xyaou_smile.png"

wait "amount"

Pauses execution of messages for an "amount" number of seconds. e.g wait 1.

setcharanimated "basefilename.png" "speed" "loops"

Changes the character on-screen and created a small looped animation. Images for the animation must follow the same filename, but with a number in the end, e.g xyaou_talk0.png, xyaou_talk1.png, xyaou_talk2.png. In that example, the basefilename argument must be ``xyaou_talk.png` (the script will pick up the right frames from that).

The "speed" argument is the amount of seconds between each frame, and "loops" is the number of loops that the animation will play.

Example: setcharanimated "xyou_talk.png" "0.12" "20" will play the files xyou_talk0.png, xyou_talk1.png and xyou_talk2.png with 0.12 seconds between each frame and loop 20 times (or until the player clicks on the screen).

end

Signalizes the end of a script. e.g end