DivaScript: Difference between revisions

From DivaDocs
GGAB3 (talk | contribs)
m added MIKU_ROT, MIKU_DISP, MIKU_MOVE, MIKU_SHADOW, MOVIE_ commands. Improved some descriptions.
GGAB3 (talk | contribs)
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 10: Line 10:
== List of DSC Commands ''(Incomplete)'' ==
== List of DSC Commands ''(Incomplete)'' ==
List of commands that can be used in FT, F, F2/X DSC formats. Format-exclusive commands are marked individually.
List of commands that can be used in FT, F, F2/X DSC formats. Format-exclusive commands are marked individually.
 
{| class="wikitable sortable"
=== AGEAGE_CTRL ===
|+
Controls the effect for the hair of the module "AgeAge Again".
!Command Name
 
!Definition
AFT: <code>AGEAGE_CTRL(chara, side, unk1, scale, unk2, unk3, -1, -1);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Parameter
!Description
!Description
!Required
!Type
!Type
|-
|-
| rowspan="6" |
<h6>AGEAGE_CTRL</h6>
| rowspan="6" |Controls the effect for the hair of the module "AgeAge Again".
FT: <code>AGEAGE_CTRL(chara, parts, npr, rot_speed, skip, disp, -1, -1);</code>
|chara
|chara
|Character slot
|Character slot
|True
|int
|int
|-
|-
|side
|parts
|Side to control
|Hair parts to control:
|True
<code>0</code>: both
|enum:  
 
0: both
<code>1</code>: left
1: left
 
2: right
<code>2</code>: right
|enum
|-
|npr
|sets NPR material
|bool
|-
|-
|unk1
|speed
|Unknown
|Effect speed
|True
|int
|int
|-
|-
|scale
|skip
|Effect scale
|Skips 200 frames of animation.
|True
|bool
|int
|-
|-
|unk2
|disp
|Unknown
|Whether to display the effect or not.
|False
|bool
|int
|-
|-
|unk3
| rowspan="2" |
|Unknown
<h6>BAR_TIME_SET</h6>
|True
| rowspan="2" |Sets the length of a measure.
|int
|}
 
=== BAR_TIME_SET ===
Sets the length of a measure.
 
<code>BAR_TIME_SET(bpm, beats);</code>
<code>BAR_TIME_SET(bpm, beats);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|bpm
|bpm
|Beats per minute
|Beats per minute
|True
|int
|int
|-
|-
|beats
|beats
|Number of quarter note beats minus 1. eg.: <code>3</code> for 4/4.
|Number of quarter note beats minus 1. eg: <code>3</code> for 4/4.
|True
|int
|int
|}
=== BLOOM ===
Sets data from <code>bloom</code> pv_param.
AFT, F2, X: <code>BLOOM(id, unk);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|-
| rowspan="2" |
<h6>BLOOM</h6>
| rowspan="2" |Sets data from <code>bloom</code> pv_param.
FT, F2, X: <code>BLOOM(id, unk);</code>
|id
|id
|ID matching the data in pv_param.
|ID matching the data in pv_param.
|True
|int
|int
|-
|-
|unk
|unk
|Unknown
|Unknown
|True
|int
|int
|}
|-
|
<h6>CHANGE_FIELD</h6>
|Changes the field defined in <code>pv_field</code>/<code>pv_db</code>.
<code>CHANGE_FIELD(id);</code>


=== CHANGE_FIELD ===
F2, X: <code>CHANGE_FIELD(id, unk);</code>
Changes the field defined in <code>pv_field</code>/<code>pv_db</code>.
 
<code>CHANGE_FIELD(id);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|id
|id
|ID matching the field number in <code>pv_field</code> or <code>pv_db</code>.
|ID matching the field number in <code>pv_field</code> or <code>pv_db</code>.
|True
|int
|int
|}
|-
F2, X: <code>CHANGE_FIELD(id, unk);</code>
| rowspan="2" |
 
<h6>CHARA_SIZE</h6>
=== CHARA_SIZE ===
| rowspan="2" |Sets a character's scale/size.
Sets a character's scale/size.
 
<code>CHARA_SIZE(chara, size);</code>
<code>CHARA_SIZE(chara, size);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|chara
|chara
|Character slot
|Character slot
|True
|int
|int
|-
|-
|size
|size
|Character scale
|Character scale
|True
|int
|int
|}
|-
 
|
=== END ===
<h6>END</h6>
Ends reading of the script.
|Ends reading of the script.
 
<code>END();</code>
<code>END();</code>
 
| colspan="3" |
=== HAND_SCALE ===
Set the size of a character's hand.
 
AFT: <code>HAND_SCALE(chara, hand, scale);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|-
| rowspan="3" |
<h6>HAND_SCALE</h6>
| rowspan="3" |Sets the size of a character's hand.
FT: <code>HAND_SCALE(chara, hand, scale);</code>
|chara
|chara
|Character slot
|Character slot
|True
|int
|int
|-
|-
|hand
|hand
|Which hand
|Which hand to scale:
|True
<code>1</code>: left
|enum:
 
1: left
<code>2</code>: right
2: right
|enum
|-
|-
|scale
|scale
|Hand scale in percentage times 10; eg. for <code>105%</code> use <code>1050</code>
|Hand scale in percentage times 10; eg. for <code>105%</code> use <code>1050</code>
|True
|int
|int
|}
|-
 
| rowspan="2" |
=== LYRIC ===
<h6>LYRIC</h6>
Displays a lyric from <code>pv_db</code>.
| rowspan="2" |Displays a lyric from <code>pv_db</code>.
 
<code>LYRIC(id, color);</code>
<code>LYRIC(id, color);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|id
|id
|ID matching the number of a lyric in <code>pv_db</code>.
|ID matching the number of a lyric in <code>pv_db</code>.
Use <code>-1</code> as "disable".
Use <code>-1</code> as "disable".
|True
|int
|int
|-
|-
|color
|color
|<code>#AARRGGBB</code> hex color code converted to decimal.
|<code>#AARRGGBB</code> hex color code converted to decimal.
eg.: for a red lyric the command would be <code>LYRIC(id, 16711680);</code> because
eg.: for a red lyric the command would be <code>LYRIC(id, 16711680);</code>  
Red: <code>#00FF0000</code> → <code>0x00ff0000</code> → <code>16711680</code>
 
because Red: <code>#00FF0000</code> → <code>0x00ff0000</code> → <code>16711680</code>


Default: <code>-1</code>
Default: <code>-1</code>
|False
|int
|int
|}
|-
 
| rowspan="2" |
=== MIKU_DISP ===
<h6>MIKU_DISP</h6>
Show or hide a character in a PV.
| rowspan="2" |Shows or hides a character in a PV.
 
<code>MIKU_DISP(chara, disp);</code>
<code>MIKU_DISP(chara, disp);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|chara
|chara
|Character slot
|Character slot
|True
|int
|int
|-
|-
|disp
|disp
|Whether to display the character or not.  
|Whether to display the character or not.
|True
|bool
|bool
|}
|-
 
| rowspan="4" |
=== MIKU_MOVE ===
<h6>MIKU_MOVE</h6>
Moves a character in 3D space in a PV.
| rowspan="4" |Moves a character in 3D space in a PV.
 
<code>MIKU_MOVE(chara, x, y, z);</code>
<code>MIKU_MOVE(chara, x, y, z);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|chara
|chara
|Character slot
|Character slot
|True
|int
|int
|-
|-
|x
|x
|X coordinate
|X coordinate
|True
|int
|int
|-
|-
|y
|y
|Y coordinate
|Y coordinate
|True
|int
|int
|-
|-
|z
|z
|Z coordinate
|Z coordinate
|True
|int
|int
|}
|-
 
| rowspan="2" |
=== MIKU_ROT ===
<h6>MIKU_ROT</h6>
Rotates a character in a PV.
| rowspan="2" |Rotates a character in a PV.
 
<code>MIKU_ROT(chara, angle);</code>
<code>MIKU_ROT(chara, angle);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|chara
|chara
|Character slot
|Character slot
|True
|int
|int
|-
|-
|angle
|angle
|Angle value
|Angle value
|True
|int
|int
|}
|-
 
| rowspan="2" |
=== MIKU_SHADOW ===
<h6>MIKU_SHADOW</h6>
Show or hide a character's shadow in a PV.
| rowspan="2" |Shows or hides a character's shadow in a PV.
 
<code>MIKU_SHADOW(chara, disp);</code>
<code>MIKU_SHADOW(chara, disp);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|chara
|chara
|Character slot
|Character slot
|True
|int
|int
|-
|-
|disp
|disp
|Whether to display the character's shadow or not.  
|Whether to display the character's shadow or not.
|True
|bool
|bool
|}
|-
 
| rowspan="2" |
=== MODE_SELECT ===
<h6>MODE_SELECT</h6>
Starts or ends a special chart segment, such as Chance Time.
| rowspan="2" |Starts or ends a special chart segment, such as Chance Time.
 
<code>MODE_SELECT(difficulty, mode);</code>
<code>MODE_SELECT(difficulty, mode);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|difficulty
|difficulty
|Indicates under what difficulties the command will trigger in this exact script.
|Indicates under what difficulties the command will trigger in this exact script.
This value is a bit flag corresponding to a group of difficulties:
This value is a bit flag corresponding to a group of difficulties:
<code>1</code> - Easy
<code>1</code> - Easy
<code>2</code> - Normal
<code>2</code> - Normal
<code>4</code> - Hard
<code>4</code> - Hard
<code>8</code> - Extreme
<code>8</code> - Extreme
<code>16</code> - Encore
<code>16</code> - Encore
Adding the values up to each other results in a group: <code>6</code>:Hard(4) and Normal (2).
 
Adding the values up to each other results in a group: <code>6</code> = Hard (4) and Normal (2).
 
Use <code>31</code> as a universal value (works on any difficulty).
Use <code>31</code> as a universal value (works on any difficulty).
|True
|bitfield enum
|bitfield enum
|-
|-
Line 314: Line 222:
|What segment to start/end:
|What segment to start/end:
<code>1</code> - Challenge Time (Arcade games) / Chance Time (Console games) Start
<code>1</code> - Challenge Time (Arcade games) / Chance Time (Console games) Start
<code>3</code> - Challenge Time (Arcade games) / Chance Time (Console games) End
<code>3</code> - Challenge Time (Arcade games) / Chance Time (Console games) End
<code>8</code> - Technical Zone Start
<code>8</code> - Technical Zone Start
<code>9</code> - Technical Zone End
<code>9</code> - Technical Zone End
Only used by the [https://divamodarchive.com/post/169 New Classics mod]:
Only used by the [https://divamodarchive.com/post/169 New Classics mod]:
<code>4</code> - Chance Time Start
<code>4</code> - Chance Time Start
<code>5</code> - Chance Time End
<code>5</code> - Chance Time End
|True
|enum
|enum
|}
=== MOVIE_CUT_CHG ===
Play, show or hide the movie defined in <code>pv_db</code> or a movie from <code>movie.list</code> in <code>pv_db</code>. It can be used as a fancier version of both <code>MOVIE_DISP</code> and <code>MOVIE_PLAY</code> that allows more control.
AFT: <code>MOVIE_CUT_CHG(id, disp);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|-
| rowspan="2" |
<h6>MOVIE_CUT_CHG</h6>
| rowspan="2" |Plays, shows or hides the movie defined in <code>pv_db</code> or a movie from <code>movie.list</code> in <code>pv_db</code>. It can be used as a fancier version of both <code>MOVIE_DISP</code> and <code>MOVIE_PLAY</code> that allows more control.
FT: <code>MOVIE_CUT_CHG(id, disp);</code>
|id
|id
|The number in <code>movie.list</code> of the movie to be played.
|The number in <code>movie.list</code> of the movie to be played.
Playback starts at the moment the command is called for a newly called <code>movie.list</code> item. Re-calling a movie again doesn't play it from the starting position.
Playback starts at the moment the command is called for a newly called <code>movie.list</code> item. Re-calling a movie again doesn't play it from the starting position.
|True
|int
|int
|-
|-
Line 343: Line 248:
|<code>1</code> - display the movie layer
|<code>1</code> - display the movie layer
Any other value - hide the movie layer (playback keeps going)
Any other value - hide the movie layer (playback keeps going)
|True
|bool
|bool
|}
|-
 
|
=== MOVIE_DISP ===
<h6>MOVIE_DISP</h6>
Show or hide the movie layer in a PV.
|Shows or hides the movie layer in a PV.
 
<code>MOVIE_DISP(disp);</code>
<code>MOVIE_DISP(disp);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|disp
|disp
|<code>1</code> - display the movie layer
|<code>1</code> - display the movie layer
Any other value - hide the movie layer (playback keeps going)
Any other value - hide the movie layer (playback keeps going)
|True
|bool
|bool
|}
|-
 
|
=== MOVIE_PLAY ===
<h6>MOVIE_PLAY</h6>
Start playing the movie defined in <code>pv_db</code> or the first movie in <code>movie.list</code> in <code>pv_db</code>.
|Starts playing the movie defined in <code>pv_db</code> or the first movie in <code>movie.list</code> in <code>pv_db</code>.
 
<code>MOVIE_PLAY(play);</code>
<code>MOVIE_PLAY(play);</code>
{| class="wikitable mw-collapsible mw-collapsed"
!Parameter
!Description
!Required
!Type
|-
|play
|play
|<code>1</code> - plays the movie
|<code>1</code> - plays the movie
Any other value doesn't do anything.
Any other value doesn't do anything.
|True
|bool
|bool
|}
|-
 
|
=== MUSIC_PLAY ===
<h6>MUSIC_PLAY</h6>
Starts playing the song file defined in <code>pv_db</code>.
|Starts playing the song file defined in <code>pv_db</code>.
 
<code>MUSIC_PLAY();</code>
<code>MUSIC_PLAY();</code>
| colspan="3" |
|-
|
<h6>PV_BRANCH_MODE</h6>
|Make future DSC commands only be executed on either the <code>Global</code>, <code>Fail</code> or <code>Success</code> branch.
FT, F, F2, X: <code>PV_BRANCH_MODE(branch);</code>
|branch
|<code>0</code> - Global (commands are executed regardless of success state)
<code>1</code> - Fail (commands are executed only if the PV is in the 'failed' state)


=== SCENE_FADE ===
<code>2</code> - Success (commands are executed only if the PV is in the 'success' state)
Plays a screen fade effect during PVs.
|enum
|-
|
<h6>PV_END</h6>
|Ends PV playback.
<code>PV_END();</code>
| colspan="3" |
|-
|
<h6>SATURATE</h6>
|Changes color saturation in a PV.
<code>SATURATE(amount);</code>
|amount
|Saturation strength on a scale from 0 to 1000:
<code>0</code> - No color, perfect grayscale


<code>SCENE_FADE(speed, start, end, r, g, b)</code>
<code>1000</code> - Regular colors
{| class="wikitable mw-collapsible mw-collapsed"
|int
!Parameter
!Description
!Required
!Type
|-
|-
|speed
| rowspan="6" |
|Fade duration in seconds
<h6>SCENE_FADE</h6>
| rowspan="6" |Plays a screen fade effect during PVs.
<code>SCENE_FADE(duration, start, end, r, g, b)</code>
|duration
|Fade duration in milliseconds
eg:
eg:
<code>1000</code>: 1 second
<code>1000</code>: 1 second
<code>800</code>: 0.8 seconds
<code>800</code>: 0.8 seconds
|True
|int
|int
|-
|-
Line 409: Line 320:


<code>1000</code>: fully opaque
<code>1000</code>: fully opaque
|True
|int
|int
|-
|-
Line 417: Line 327:


<code>1000</code>: fully opaque
<code>1000</code>: fully opaque
|True
|int
|int
|-
|-
|r
|r
|Red color component scale, from 0 to 1000
|Red color component scale, from 0 to 1000
|True
|int
|int
|-
|-
|g
|g
|Green color component scale, from 0 to 1000
|Green color component scale, from 0 to 1000
|True
|int
|int
|-
|-
|b
|b
|Blue color component scale, from 0 to 1000
|Blue color component scale, from 0 to 1000
|True
|int
|int
|}
|-
<!-- Please keep all the commands in alphabetical order!! -->
|
<h6>SE_EFFECT</h6>
|Plays a sound effect in a PV defined in <code>pv_db</code>. Normally used for success scenes but not restricted to them.
FT, F, F2, X: <code>SE_EFFECT(id);</code>
|id
|number of a <code>effect_se_name_list</code> item defined in <code>pv_db</code>.
|int
|-
| rowspan="12" |
<h6>TARGET</h6>
| rowspan="12" |Spawns a rhythm game note.
FT: <code>TARGET(type, pos_x, pos_y, angle, dist, amp, freq);</code>
 
F: <code>TARGET(type, duration, is_end, pos_x, pos_y, angle, freq, dist, amp, fly_time, sig);</code>
 
F2, X: <code>TARGET(type, duration, is_end, pos_x, pos_y, angle, freq, dist, amp, fly_time, sig, hit_eff);</code>
|type
|ID corresponding to a note type.
Full ID list for each game on the dedicated [[Target]] page.
|enum
|-
|pos_x
|X position of the note's target.
|int
|-
|pos_y
|Y position of the note's target.
|int
|-
|angle
|Angle of the note's path.
|int
|-
|distance
|Distance between the note's spawn position and the target's position.
Default: <code>300000</code>
|int
|-
|amp
|Amplitude of the note's path wave.
Default: <code>500</code>
|int
|-
|freq
|Frequency of the note's path wave.
|int
|-
|duration
|(for F/F2/X formats)
Sustain and Rush Note duration.
Default (for notes other than Sustain and Rush): <code>-1</code>
|DivaTime
|-
|is_end
|(for F/F2/X formats)
set to <code>1</code> for Sustain 'end' notes, otherwise set to <code>-1</code>
|bool
|-
|fly_time
|(for F/F2/X formats)
Target Flying Time value (same format as the TARGET_FLYING_TIME command)
|DivaTime
|-
|sig
|(for F/F2/X formats)
Time Signature
 
The same value that would otherwise go in <code>BAR_TIME_SET</code>:
 
Number of quarter note beats minus 1. eg: <code>3</code> for 4/4.
|int
|-
|hit_eff
|(for F2/X formats)
Assigns a hit effect to the note based on a local ID defined in a previous TARGET_EFFECT command.
|int
|-
|
<h6>TARGET_FLYING_TIME</h6>
|Sets the time it takes for the rhythm game notes to hit their targets.
<code>TARGET_FLYING_TIME(flytime);</code>
|flytime
|time value in milliseconds
|int
|-
|
<h6>TIME</h6>
|Waits until a specified game time.
<code>TIME(t);</code>
|t
|time value in DivaTime
|DivaTime
|}<!-- Please keep all the commands in alphabetical order!! -->
 
= References =
somewhatlurker's [https://github.com/somewhatlurker/pydiva/blob/dsc/pydiva/pydsc_op_db.py pyDIVA/pyDSC]

Latest revision as of 08:05, 26 October 2025

DivaScript (commonly referred to as DSC) is the file format used by all the Project DIVA games for storing various commands related to Music Videos/PVs and Rhythm Game Charts.

The data inside .dsc files is stored in a binary format. This means that they can not be edited with a text editor and instead require specialized programs that can decode them such as DSC Studio or ScriptEditor. Additionally, .dsc files from Project DIVA F2nd and Project DIVA X are encrypted using DIVAFILE encryption. They need to be decrypted before editing.

DSC Formats

[edit | edit source]

Every Project DIVA game uses a specific DivaScript format. The exact format of a .dsc file is determined by the first 4 bytes of the file.

List of DSC Commands (Incomplete)

[edit | edit source]

List of commands that can be used in FT, F, F2/X DSC formats. Format-exclusive commands are marked individually.

Command Name Definition Parameter Description Type
AGEAGE_CTRL
Controls the effect for the hair of the module "AgeAge Again".

FT: AGEAGE_CTRL(chara, parts, npr, rot_speed, skip, disp, -1, -1);

chara Character slot int
parts Hair parts to control:

0: both

1: left

2: right

enum
npr sets NPR material bool
speed Effect speed int
skip Skips 200 frames of animation. bool
disp Whether to display the effect or not. bool
BAR_TIME_SET
Sets the length of a measure.

BAR_TIME_SET(bpm, beats);

bpm Beats per minute int
beats Number of quarter note beats minus 1. eg: 3 for 4/4. int
BLOOM
Sets data from bloom pv_param.

FT, F2, X: BLOOM(id, unk);

id ID matching the data in pv_param. int
unk Unknown int
CHANGE_FIELD
Changes the field defined in pv_field/pv_db.

CHANGE_FIELD(id);

F2, X: CHANGE_FIELD(id, unk);

id ID matching the field number in pv_field or pv_db. int
CHARA_SIZE
Sets a character's scale/size.

CHARA_SIZE(chara, size);

chara Character slot int
size Character scale int
END
Ends reading of the script.

END();

HAND_SCALE
Sets the size of a character's hand.

FT: HAND_SCALE(chara, hand, scale);

chara Character slot int
hand Which hand to scale:

1: left

2: right

enum
scale Hand scale in percentage times 10; eg. for 105% use 1050 int
LYRIC
Displays a lyric from pv_db.

LYRIC(id, color);

id ID matching the number of a lyric in pv_db.

Use -1 as "disable".

int
color #AARRGGBB hex color code converted to decimal.

eg.: for a red lyric the command would be LYRIC(id, 16711680);

because Red: #00FF00000x00ff000016711680

Default: -1

int
MIKU_DISP
Shows or hides a character in a PV.

MIKU_DISP(chara, disp);

chara Character slot int
disp Whether to display the character or not. bool
MIKU_MOVE
Moves a character in 3D space in a PV.

MIKU_MOVE(chara, x, y, z);

chara Character slot int
x X coordinate int
y Y coordinate int
z Z coordinate int
MIKU_ROT
Rotates a character in a PV.

MIKU_ROT(chara, angle);

chara Character slot int
angle Angle value int
MIKU_SHADOW
Shows or hides a character's shadow in a PV.

MIKU_SHADOW(chara, disp);

chara Character slot int
disp Whether to display the character's shadow or not. bool
MODE_SELECT
Starts or ends a special chart segment, such as Chance Time.

MODE_SELECT(difficulty, mode);

difficulty Indicates under what difficulties the command will trigger in this exact script.

This value is a bit flag corresponding to a group of difficulties:

1 - Easy

2 - Normal

4 - Hard

8 - Extreme

16 - Encore

Adding the values up to each other results in a group: 6 = Hard (4) and Normal (2).

Use 31 as a universal value (works on any difficulty).

bitfield enum
mode What segment to start/end:

1 - Challenge Time (Arcade games) / Chance Time (Console games) Start

3 - Challenge Time (Arcade games) / Chance Time (Console games) End

8 - Technical Zone Start

9 - Technical Zone End

Only used by the New Classics mod:

4 - Chance Time Start

5 - Chance Time End

enum
MOVIE_CUT_CHG
Plays, shows or hides the movie defined in pv_db or a movie from movie.list in pv_db. It can be used as a fancier version of both MOVIE_DISP and MOVIE_PLAY that allows more control.

FT: MOVIE_CUT_CHG(id, disp);

id The number in movie.list of the movie to be played.

Playback starts at the moment the command is called for a newly called movie.list item. Re-calling a movie again doesn't play it from the starting position.

int
disp 1 - display the movie layer

Any other value - hide the movie layer (playback keeps going)

bool
MOVIE_DISP
Shows or hides the movie layer in a PV.

MOVIE_DISP(disp);

disp 1 - display the movie layer

Any other value - hide the movie layer (playback keeps going)

bool
MOVIE_PLAY
Starts playing the movie defined in pv_db or the first movie in movie.list in pv_db.

MOVIE_PLAY(play);

play 1 - plays the movie

Any other value doesn't do anything.

bool
MUSIC_PLAY
Starts playing the song file defined in pv_db.

MUSIC_PLAY();

PV_BRANCH_MODE
Make future DSC commands only be executed on either the Global, Fail or Success branch.

FT, F, F2, X: PV_BRANCH_MODE(branch);

branch 0 - Global (commands are executed regardless of success state)

1 - Fail (commands are executed only if the PV is in the 'failed' state)

2 - Success (commands are executed only if the PV is in the 'success' state)

enum
PV_END
Ends PV playback.

PV_END();

SATURATE
Changes color saturation in a PV.

SATURATE(amount);

amount Saturation strength on a scale from 0 to 1000:

0 - No color, perfect grayscale

1000 - Regular colors

int
SCENE_FADE
Plays a screen fade effect during PVs.

SCENE_FADE(duration, start, end, r, g, b)

duration Fade duration in milliseconds

eg:

1000: 1 second

800: 0.8 seconds

int
start The opacity the fade will start with

0: fully transparent

1000: fully opaque

int
end The opacity the fade will end with

0: fully transparent

1000: fully opaque

int
r Red color component scale, from 0 to 1000 int
g Green color component scale, from 0 to 1000 int
b Blue color component scale, from 0 to 1000 int
SE_EFFECT
Plays a sound effect in a PV defined in pv_db. Normally used for success scenes but not restricted to them.

FT, F, F2, X: SE_EFFECT(id);

id number of a effect_se_name_list item defined in pv_db. int
TARGET
Spawns a rhythm game note.

FT: TARGET(type, pos_x, pos_y, angle, dist, amp, freq);

F: TARGET(type, duration, is_end, pos_x, pos_y, angle, freq, dist, amp, fly_time, sig);

F2, X: TARGET(type, duration, is_end, pos_x, pos_y, angle, freq, dist, amp, fly_time, sig, hit_eff);

type ID corresponding to a note type.

Full ID list for each game on the dedicated Target page.

enum
pos_x X position of the note's target. int
pos_y Y position of the note's target. int
angle Angle of the note's path. int
distance Distance between the note's spawn position and the target's position.

Default: 300000

int
amp Amplitude of the note's path wave.

Default: 500

int
freq Frequency of the note's path wave. int
duration (for F/F2/X formats)

Sustain and Rush Note duration. Default (for notes other than Sustain and Rush): -1

DivaTime
is_end (for F/F2/X formats)

set to 1 for Sustain 'end' notes, otherwise set to -1

bool
fly_time (for F/F2/X formats)

Target Flying Time value (same format as the TARGET_FLYING_TIME command)

DivaTime
sig (for F/F2/X formats)

Time Signature

The same value that would otherwise go in BAR_TIME_SET:

Number of quarter note beats minus 1. eg: 3 for 4/4.

int
hit_eff (for F2/X formats)

Assigns a hit effect to the note based on a local ID defined in a previous TARGET_EFFECT command.

int
TARGET_FLYING_TIME
Sets the time it takes for the rhythm game notes to hit their targets.

TARGET_FLYING_TIME(flytime);

flytime time value in milliseconds int
TIME
Waits until a specified game time.

TIME(t);

t time value in DivaTime DivaTime

References

[edit | edit source]

somewhatlurker's pyDIVA/pyDSC