- Welcome to Touhou Wiki!
- Registering is temporarily disabled. Check in our Discord server to request an account and for assistance of any kind.
Functions (0.12m)
Jump to navigation
Jump to search
Common Functions
The most commonly used functions.
Motion Functions
Functions for moving enemies or the player.
- SetX
- SetY
- SetSpeed
- SetAngle
- SetMovePosition01
- SetMovePosition02
- SetMovePosition03
- SetMovePositionHermite
- SetMovePositionRandom01
- SetPlayerX
- SetPlayerY
- SetCoordinateType
- SetOrigin
Bullet Control Functions
Functions for shooting bullets.
- SetShotDirectionType
- SetShotKillTime
- CreateShot01
- CreateShot02
- CreateShot11
- CreateShot12
- CreateShotA
- SetShotDataA
- SetShotDataA_XY
- CreateLaser01
- CreateLaserA
- SetLaserDataA
- CreateLaserB
- SetLaserDataB
- CreateLaserC
- SetLaserDataC
- AddShot
- FireShot
- CreateShotFromScript
- DeleteEnemyShot
- DeleteEnemyShotInCircle
- DeleteEnemyShotImmediatelyInCircle
- DeleteEnemyShotToItem
- DeleteEnemyShotToItemInCircle
- SetShotColor
- LoadUserShotData
- SetShotAutoDeleteClip
Drawing Functions
Functions for drawing graphics on the screen.
Note that 3D drawing functions are listed under Stage Script Functions, because 3D drawing is only usable in stage backgrounds.
- DrawGraphic
- LoadGraphic
- DeleteGraphic
- SetTexture
- SetGraphicRect
- SetGraphicScale
- SetGraphicExpansion
- SetGraphicAngle
- SetAlpha
- SetColor
- SetRenderState
- DrawText
- SetFontColor
- CreateRenderTarget
- SetRenderTarget
- ClearRenderTarget
Sound Functions
Functions for sound effects and backround music.
Mathematical or Information Functions
Functions used for calculation.
- cos
- sin
- tan
- acos
- asin
- atan
- atan2
- log
- log10
- rand
- rand_int
- prand
- prand_int
- psrand
- int
- truncate
- round
- ceil
- floor
- absolute
- length
- integral
- ToString
- Collision_Line_Circle
- Collision_Obj_Obj
- GetX
- GetY
- GetLife
- GetSpeed
- GetAngle
- GetEnemyX
- GetEnemyY
- GetEnemyLife
- GetTimer
- GetEnemyNum
- GetEnemyShotCount
- GetEnemyShotCountEx
- EnumEnemyBegin
- EnumEnemyEnd
- EnumEnemyGetID
- GetEnemyInfo
- GetEnemyInfoDefault
- GetPlayerX
- GetPlayerY
- GetAngleToPlayer
- GetPlayerType
- GetPlayerScriptName
- GetPlayerLife
- GetPlayerBomb
- GetPlayerMoveState
- GetPlayerInfo
- GetTimeOfPlayerInvincibility
- GetTimeOfSuperNaturalBorder
- GetMissCount
- GetMissCountInThisSpell
- GetBombCount
- GetBombCountInThisSpell
- GetScore
- GetGraze
- GetPoint
- Continued
- GetAllowedContinueCount
- OnPlayerMissed
- OnBomb
- OnEnemySpell
- OnEnemyLastSpell
- IsBossExisting
- IsBGStopping
- IsReplay
- GetCenterX
- GetCenterY
- GetClipMinX
- GetClipMaxX
- GetClipMinY
- GetClipMaxY
- GetCurrentScriptDirectory
- UsedDebugKey
- GetKeyState
- GetFPS
- GetTime
- IsRenderFrame
- erase
Miscellaneous Functions
Other common functions.
- SetCommonData
- GetCommonData
- GetCommonDataDefault
- ClearCommonData
- DeleteCommonData
- SaveCommonData
- SaveCommonDataInReplayFile
- LoadCommonData
- LoadCommonDataFromReplayFile
- CreateCommonDataArea
- SetCommonDataEx
- GetCommonDataEx
- GetCommonDataDefaultEx
- ClearCommonDataEx
- DeleteCommonDataEx
- SaveCommonDataEx
- LoadCommonDataEx
- IsCommonDataAreaExists
- CreateDebugWindow
- OutputDebugString
- DeleteAllEnemyWithoutBoss
- SetPlayerInvincibility
- ExtendPlayer
- SuperNaturalBorder
- ShootDownPlayer
- SetEffectLayer
- CollectItems
- AddScore
- AddPoint
- AddGraze
- AddBomb
- SetLifeZeroToAllEnemy
- SetAllowedContinueCount
- SetRateScoreSystemEnable
- SetDefaultStatusVisible
- SetNormPoint
- ForbidShot
- ForbidBomb
- Slow
- SaveSnapShot
- AddArchiveFile
- RaiseError
- Retry
- assert
- GetVersion
Enemy Script Functions
Functions for enemy effects.
- SetLife
- AddLife
- SetTimer
- SetInvincibility
- SetDamageRate
- SetDamageRateEx
- SetDurableSpellCard
- SetCollisionA
- SetCollisionB
- SetScore
- CreateEnemyFromScript
- CreateEnemyFromFile
- VanishEnemy
- SetEnemyMarker
- LastSpell
- Concentration01
- Concentration02
- Explosion01
- MotionBlur
- MotionBlurEx
- Slow
- TimeStop
- CutIn
- SetText
- MagicCircle
- SetEffectForZeroLife
- CreateEventFromScript
- CreateItem
- Expert
- GetSpeedX
- GetSpeedY
- GetLife
- GetHitCount
- GetTimeOfInvincibility
- BeVanished
- BeParentVanished
- IsMaster
- IsTimeOut
- GetSpellCardBonusScore
- GotSpellCardBonus
- OnEvent
- GetEventStep
- GetArgument
- GetArgumentDefault
Bullet Script Functions
Functions for special bullet scripts.
- SetDefault
- SetLaser
- SetCollisionB
- SetCollisionBDefault
- SetCollisionLaser
- SetBombResist
- End
- DefaultDrawGraphicDefault
- DrawLaser
- GetArgument
- OnDelay
- GetDelayTime
Event Script Functions
Functions for dialogue events.
- SetChar
- DeleteChar
- MoveChar
- SetGraphicRect
- SetNameFromText
- SetNameFromTexture
- DeleteName
- SetStep
- TextOutA
- TextOutB
- TextOutC
- Select
- Wait
- End
- StageClear
Stage Script Functions
Functions for stage scripts.
- CreateEnemyFromScript
- CreateEnemyFromFile
- CreateEnemyBossFromFile
- CompileEnemyFromFile
- ClearByteCodeCash
- CreateEventFromScript
- ClearStage
- IsClear
- SetRenderFrame
- SetClearFrameEffectEnable
- Expert
- ExpertEx
- ExtendPlayer
- SuperNaturalBorder
- DrawGraphic3D
- SetViewTo
- SetViewFrom
- SetPerspectiveClip
- WriteZBuffer
- UseZBuffer
- SetFog
Character Script Functions
Functions for player character scripts.
- SetX
- SetY
- SetSpeed
- SetIntersectionCircle
- SetGrazeCircle
- SetRebirthFrame
- SetRebirthFrameReduction
- SetInitialBombCount
- LoadPlayerShotData
- CreatePlayerShot01
- SetPlayerLifeImage
- CutIn
- UseSpellCard
- CallSpellCard
- SetItemCollectLine
- SetAutoEffect
- GetRebirthFrame
- IsLastSpell
- IsForbidBomb
- OnMissed
- OnBorderOfLife
Spell Card Script Functions
Functions for player character spellcard scripts.
Object Control Functions
Functions for special bullet objects, laser objects, effect objects, and spellcard objects.
- Obj_Create
- Obj_Delete
- Obj_BeDeleted
- Obj_SetX
- Obj_SetY
- Obj_SetPosition
- Obj_SetSpeed
- Obj_SetAngle
- Obj_SetAutoDelete
- Obj_SetAlpha
- Obj_SetCollisionToPlayer
- Obj_SetCollisionToObject
- Obj_IsIntersected
- Obj_GetX
- Obj_GetY
- Obj_GetSpeed
- Obj_GetAngle
- ObjShot_FadeDelete
- ObjShot_SetDelay
- ObjShot_SetBombResist
- ObjShot_SetGraphic
- ObjShot_SetDamage
- ObjShot_SetPenetration
- ObjShot_ToItem
- ObjLaser_SetLength
- ObjLaser_SetWidth
- ObjLaser_SetSource
- ObjLaser_GetEndX
- ObjLaser_GetEndY
- ObjLaser_GetLength
- ObjLaser_GetWidth
- ObjSinuateLaser_SetLength
- ObjSinuateLaser_SetWidth
- ObjEffect_SetTexture
- ObjEffect_SetRenderState
- ObjEffect_SetPrimitiveType
- ObjEffect_SetScale
- ObjEffect_SetAngle
- ObjEffect_SetLayer
- ObjEffect_CreateVertex
- ObjEffect_SetVertexXY
- ObjEffect_SetVertexColor
- ObjEffect_SetVertexUV
- ObjEffect_ResizeVertexCount
- ObjSpell_SetIntersecrionCircle
- ObjSpell_SetIntersecrionLine
- Return to Main