Player_GetAtkItem()
対応バージョン
Section titled “対応バージョン”Player_GetAtk()プレイヤーの武器の攻撃力(ATK)を取得します。 所有している武器の攻撃力が返されます。
サンプルコード
Section titled “サンプルコード”if (Player_GetAtkItem()<=9){ Dialog_Add("You need a more powerful weapon.");}else if (Player_GetAtkItem()>=10 && Player_GetAtkItem()<=20){ Dialog_Add("Okay, I grant permission to fight the enemies in the arena.");}elseif (Player_GetAtkItem()>=21){ Dialog_Add("Your weapon is too powerful.");}Dialog_Start();上記コードは、プレイヤーの所有武器の攻撃力を取得し、それに応じたダイアログを表示します。