rathena/npc/sample/npc_test_str.txt

18 lines
500 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 文字列変数のテスト
prontera.gat,164,188,1 script 文字列テスト 112,{
set @str$, "文字列1";
mes "文字列変数:" + @str$ ;
mes "確認:" + @str$ + " ...OK?";
next;
mes "比較eqOK" + (@str$=="文字列1");
mes "比較eqNG" + (@str$=="文字列");
mes "比較neOK" + (@str$!="00000");
mes "比較neNG" + (@str$!="文字列1");
mes "比較gtOK" + ("aab">"aaa");
mes "比較ltNG" + ("aab"<"aaa");
next;
input @str2$;
mes "入力データは " + @str2$ + " です。";
close;
}