CheckIntelligenceLow()

話しているプレイヤーの知力の値が8以下かどうか判定します。

int CheckIntelligenceLow();

Description

会話中のプレイヤーキャラクターの知力の値が8以下ならばTRUEを返します。



Remarks

この関数はnw_i0_plot.nssの57行目にあります。


これはプレイヤーが知力が低い場合に異なった会話の内容を選択し、やや失礼な言動を取るようにするためにBioWareが使用しました。


Requirements

#include "nw_i0_plot"

Version

1.22

Example

//Add as a starting conditional on a conversation thread for a Quest giving NPC who expects the player to return a stolen item.
//If they talk to him again, without having the diamond and a low intelligence score, he will call them idiots and tell
//them to get back out there and try again.

#include "NW_I0_Plot"

int StartingConditional()
{
	if(GetLocalInt(GetPCSpeaker(), "STEAL_DIAMOND_QUEST") == 1){
		int bQuestNotComplete = !GetIsObjectValid(GetItemPossessedBy(GetPCSpeaker(),"StolenDiamond")) &&
			     CheckIntelligenceLow();
	}else{
		int bQuestNotComplete = FALSE;
	}

	return bQuestNotComplete;
}

See Also

functions: CheckCharismaHigh | CheckCharismaLow | CheckCharismaMiddle | CheckCharismaNormal | CheckIntelligenceHigh | CheckIntelligenceNormal | CheckWisdomHigh
categories: Get Data from Creature Functions


author: John Shuell, JP team: marshall
Send comments on this topic.