- Return to Touhou Danmakufu: Functions
Functions for event scripts.
Event Control Functions
Functions to control the talk events.
SetChar
Show the character's graphic.
2 Parameters
1) display position
LEFT : left-side
RIGHT: right-side
2) path of the graphic (string)
DeleteChar
Delete the shown character's garphic.
1 Parameter
1) display position
LEFT : left-side
RIGHT: right-side
MoveChar
Move the shown character's graphic.
2 Parameters
1) display position
LEFT : left-side
RIGHT: right-side
2) move position
BACK : back (the graphic becomes transparent)
FRONT: front
SetGraphicRect
Set the rectangular drawing region of the graphic.
5 Parameters
1) display position
LEFT : left-side
RIGHT: right-side
2) left
3) top
4) right
5) bottom
SetNameFromText
Show the name of the character by text.
4 Parameters
1) display position
LEFT : left-side
RIGHT: right-side
2) color
TEXT_RED, TEXT_GREEN, TEXT_BLUE, TEXT_YELLOW,
TEXT_PURPLE, TEXT_AQUA, and TEXT_WHITE are available
3) name (string)
4) nickname (string)
SetNameFromTexture
Show the name of the character by graphic.
2 Parameters
1) display position
LEFT : left-side
RIGHT: right-side
2) path of the graphic (string)
1) キャラクタの方向(LEFT:左、RIGHT:右) 2) 読みこんであるテクスチャ名
DeleteName
Delete the name of the character.
1 Parameter
1) display position
LEFT : left-side
RIGHT: right-side
SetStep
Set the event step. This value can be gotton by GetEventStep.
1 Parameter
1) event step (user-defined value)
TextOutA
Show text. TextOut is equivalent. The font face is "Standard Mincho". Tab codes are ignored.
The following strings have special meanings.
\n
new line\c[(color)]
text color of the line
RED, GREEN, BLUE, YELLOW, PURPLE, AQUA, and WHITE are available.
For example,
TextOut("\c[RED]楽しい夜になりそうね\n
\c[BLUE]永い夜になりそうね");
1 Parameter
1) text
TextOutB
Show text for the frames. The "dicide" key is ignored (the "message skip" key is available).
2 Parameters
1) frames
2) text
Select
Show two options.
2 Parameters
1) option 1
2) option 2
Return value
index of the selected option (1 or 2)
Wait
Stop the event for the frames.
1 Parameter
1) frames
End
End the event.
StageClear
Clear the game. The character's garphics and the text are retained.
- Return to Touhou Danmakufu: Functions