Tips37

Last-modified: 2011-08-29 (月) 15:43:48

Notoriety.cs 戦闘の可否やネームカラーの設定(敵対や同盟等)

  • カテゴリー: スクリプト
  • 重要性: 普通
  • 投稿日: 2005-10-22 (土) 23:51:22

Scripts\Misc\Notoriety.cs

public static bool Mobile_AllowBeneficial( Mobile from, Mobile target )

このメソッドでtrueを返せば好意的な行動が可能。

public static bool Mobile_AllowHarmful( Mobile from, Mobile target )

このメソッドでtrueを返せば攻撃的な行動が可能。ちなみにファセットがフェルッカルールなら殆ど無条件でtrue。詳しくはTips29 このメソッドとちなみに犯罪フラグは関係ない。

Notoriety

Notoriety.Innocent//青 Notoriety.Ally//緑 Notoriety.CanBeAttacked//灰 Notoriety.Criminal//灰(犯罪者) Notoriety.Enemy//橙 Notoriety.Murderer//赤 Notoriety.Invulnerable//黄

public static int CorpseNotoriety( Mobile source, Corpse target )

死体の名前の色。返すNotorietyによって色が変わる。犯罪フラグにも関係する。

public static int MobileNotoriety( Mobile source, Mobile target )

キャラクターの名前の色。返すNotorietyによって色が変わる。犯罪フラグにも関係する。特定のRegionならNotoriety.Enemyを返すなどの設定をすれば、そのRegion内なら所属ギルドにかかわらずオレンジに見える等が可能。