npc_test_str.txt 483 B

1234567891011121314151617
  1. // 文字列変数のテスト
  2. prontera.gat,164,188,1 script 文字列テスト 112,{
  3. set @str$, "文字列1";
  4. mes "文字列変数:" + @str$ ;
  5. mes "確認:" + @str$ + " ...OK?";
  6. next;
  7. mes "比較~eqOK:" + (@str$=="文字列1");
  8. mes "比較~eqNG:" + (@str$=="文字列");
  9. mes "比較~neOK:" + (@str$!="00000");
  10. mes "比較~neNG:" + (@str$!="文字列1");
  11. mes "比較~gtOK:" + ("aab">"aaa");
  12. mes "比較~ltNG:" + ("aab"<"aaa");
  13. next;
  14. input @str2$;
  15. mes "入力データは " + @str2$ + " です。";
  16. close;
  17. }