コンテンツにスキップ

Player_GetDef()

Master old_version zhazha
Player_GetDef()

プレイヤーの防御力(DEF)を取得します。

object/step
if (Player_GetDef()<=5){
Dialog_Add("With your current defense, you won't be able to withstand the upcoming attack.");
}else{
Dialog_Add("With your current defense, you might be able to withstand the attack.");
}
Dialog_Start();

上記コードは、プレイヤーの防御力を取得し、それに応じたダイアログを表示します。