You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.3 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

; 開発用テスト
*top
;------ 初夏のサンプル開始 ------
; 変数へ代入
[CMD exp="var = 510"]
; 変数の取得/関数の実行
[CMD exp="var = gto_test_func( 200 )"]
[CMD exp="var = fit"]
[CMD exp="var = slot"]
; 文字列引数のテスト
[CMD exp="gto_test_func2('test03.ks', '*cmp_true')"]
; 判定で使ってみる
[if_param_next exp="var >= 100" comptarget="*cmp_true" incomptarget="*cmp_false"]
;------ 初夏のサンプル終了 ------
[CMD exp="rand(5)"]
[CMD exp=" skidoku('op01.ks', NULL) "]
[set value="route" param="shiro"]
[CMD exp="route"]
[add value="love" index="shiro" param="+4"]
[CMD exp="love[shiro]"]
[CMD exp="love[shiro]++"]
[CMD exp="love[shiro] *= 1*2"]
[CMD exp="love[shiro]"]
[CMD exp=" max( love[shiro], 15 ) "]
[CMD exp=" min( love[shiro], 15 ) "]
; [if_param_next value="love" index="shiro" param="10" comptarget="*cmp_true" incomptarget="*cmp_false"]
[if_param_next exp="love[ shiro ] >= 10 && route == shiro" comptarget="*cmp_true" incomptarget="*cmp_false"]
[next]
*cmp_true
[message window="kyara" name=""]
しん
[/message]
[next]
*cmp_false
[message window="kyara" name=""]
[/message]
[next]