Tips12


PCの最大/最小抵抗値や最大HP等

  • カテゴリー: 設定
  • 重要性: 普通
  • 投稿日: 2005-08-01 (月) 01:50:23

メッセージ

Scripts\Mobiles\PlayerMobile.cs このスクリプトはPCについて色々と記述されているので重要なスクリプトの一つ。

最大抵抗値(AOS)を全て100に変更

#code(csharp){{
public override int GetMaxResistance( ResistanceType type )
{
//int max = base.GetMaxResistance( type ); baseつまり継承元のMobileクラスの数値を呼び出している。この数値は70
int max = 100
if ( type != ResistanceType.Physical && 60 < max && Spells.Fourth.CurseSpell.UnderEffect( this ) )
max = 60;//カースが効いている状態では最大60になる。この効果はプレイヤー限定なのでPlayerMobileに記述されている。

return max;
}
}}

これ書いてから気づいたんですが MaxPlayerResistance = 100; でもいけました。

最大抵抗値を属性ごとに設定

#code(csharp){{
public override int GetMaxResistance( ResistanceType type )
{
int max = base.GetMaxResistance( type );

switch ( type )
{
case ResistanceType.Physical:
{
max = 75;
break;
}
case ResistanceType.Fire:
{
max = 80;
break;
}
case ResistanceType.Cold:
{
max = 85;
break;
}
case ResistanceType.Poison:
{
max = 90;
break;
}
case ResistanceType.Energy:
{
max = 95;
break;
}
}

if ( type != ResistanceType.Physical && 60 < max && Spells.Fourth.CurseSpell.UnderEffect( this ) )
max = 60;

return max;
}
}}

最小抵抗値(AOS)の変更

#code(csharp){{
int baseMin = base.GetMinResistance( type );

switch (type)
{
case ResistanceType.Physical:
{
min = 0;//レジ保障抵抗値固定
break;
}
case ResistanceType.Fire:
{
break;
}
case ResistanceType.Cold:
{
break;
}
case ResistanceType.Poison:
{
min = ( min - 10 );//レジ保障値-10=抵抗値
break;
}
case ResistanceType.Energy:
{
min = ( min + 10 );//レジ保障値+10=抵抗値
break;
}
}


if ( min < baseMin )
min = baseMin;

return min;
}
}}


その他

  • HitsMax、StamMax、ManaMax

  • 最小抵抗値に装備抵抗値を使うべきではないでしょう。 最小抵抗値はあくまでそれより下がらない値であって、抵抗値として使われるわけではないのですから。 -- Hermit? 2006-04-29 (土) 19:16:36
  • うっ (..; 狙いとしてレジスキル抵抗保障値に装備抵抗値を加算させた数値を抵抗値としたかったのですが、最小抵抗値を弄るのでは駄目なんですね、装備抵抗値に関しては削除しときます。 (T-T -- hideo? 2006-04-29 (土) 19:41:02
  • あっ、そっか最大抵抗値の方に入れればいいのか。 -- hideo? 2006-04-29 (土) 19:51:17
  • Mobileの抵抗値はvirtual int GetResistance( ResistanceType type )で得ることが出来ます。overrideしてそっちに記述するべきでしょう。 -- Hermit? 2006-04-29 (土) 20:18:54
  • いつもご指摘有難う御座います、早速格闘してみます。 (^^) -- hideo? 2006-04-29 (土) 21:01:06

メニュー

オリジナル

T2A

  • InPorYelm?

UOR+T2A

AOS

  • なし

UOML

 

  • counter: 672
  • today: 1
  • yesterday: 0
  • online: 1