Touhou Wiki
Advertisement

Common Data Functions

Functions to manage the common data. The common data can be shared beyond scripts.

SetCommonData

Set the value to the common data.

2 Parameters
    1) name of the common data
    2) value

GetCommonData

Get the value from the common data.

1 Parameter
    1) name of the common data
Return value
    value
    ("NoData", if the common data doesn't exist)

GetCommonDataDefault

Get the value from the common data. If the common data doesn't exist, the default value (2nd argument) is returned.

2 Parameters
    1) name of the common data
    2) default value
Return value
    value

ClearCommonData

Delete all the common data.

DeleteCommonData

Delete the common data.

1 Parameter
    1) name of the common data

SaveCommonData

Save all the common data to file ".\xxx_save.dat".

LoadCommonData

Load all the common data from file ".\xxx_save.dat".


Debug Functions

Functions for debugging. These functions cannot be used on fullscreen mode. These functions should be removed before the script is released.

CreateDebugWindow

Show the debug window. The debug window shows various debug information.

OutputDebugString

Output user-defined debug information to the debug window. This function is ignored when the debug window is not shown.

3 Parameters
    1) line number (about 0 ~ 10?)
    2) output string
    3) output value


Miscellaneous Functions

SetPlayerInvincibility

Make player's character invincible for the frames. If 0, it cancels the invincibility.

1 Parameter
    1) frames

ExtendPlayer

Extend players.

1 Parameter
    1) number of players

SuperNaturalBorder

Spread out the supre natural border for the frames.

1 Parameter
    1) frames

CollectItems

Collect all the items.

AddScore

Add score.

1 Parameter
    1) score

AddPoint

Add points.

1 Parameter
    1) number of point items

AddGraze

Add times of grazing.

1 Parameter
    1) times of grazing

AddBomb

Add bombs.

1 Parameter
    1) bombs

SetAllowedContinueCount

Set the allowed times to continue.

1 Parameter
    1) continue count

SetNormpoint

Set the norm points. If a negative value is set, the norm is not displayed.

1 Parameter
    1) norm

ForbidShot

Forbid to shoot.

1 Parameter
    1) true : forbid
       false: allow

ForbidBomb

Forbid to bomb.

1 Parameter
    1) true : forbid
       false: allow

AddArchiveFile

Add the archive file to the searching list. This list is used on searching images or sounds.

1 Parameter
    1) path of the archive (string)

RaiseError

Show error dialog and abort the script.

2 Parameters
    1) body text (string)
    2) caption (string)

assert

Assert that the condition is true. If not, an error is caused.

2 Parameters
    1) condition
    2) text (string)

GetVersion

Get the version of Touhou Danmakufu.

Return value
    version (string)

Advertisement