Player_GetDefItem()
対応バージョン
Section titled “対応バージョン”Player_GetDefItem()プレイヤーの防具(armor)の防御力(DEF)を取得します。 所有している防具の防御力が返されます。
サンプルコード
Section titled “サンプルコード”if (Player_GetDefItem()<=5){ Dialog_Add("Your armor is not strong enough.");}else if (Player_GetDefItem()>=6 && Player_GetDefItem()<=10){ Dialog_Add("This armor should be sufficient for most battles.");}elseif (Player_GetDefItem()>=11){ Dialog_Add("Your armor is very powerful.");}Dialog_Start();上記コードは、プレイヤーの所有防具の防御力を取得し、それに応じたダイアログを表示します。