RPG Maker Unite version 1.00.00
Generated by Doxygen 1.9.6
 
Loading...
Searching...
No Matches
RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog Class Reference

戦闘ログのウィンドウ このウィンドウのメソッドの多くは、push() によって _methods プロパティに保存され順次実行される メッセージの表示だけではなく、サイドビューのアクションなども処理する、マネージャ的な役割も持っている More...

Public Member Functions

override void Initialize ()
 初期化処理
 
int MessageSpeed ()
 メッセージ描画速度
 
bool IsBusy ()
 動作中か
 
new void UpdateTimeHandler ()
 Update処理
 
bool UpdateWait ()
 待ち時間のアップデート
 
bool UpdateWaitCount ()
 待ちカウントのアップデート
 
bool UpdateWaitMode ()
 待ち状態のアップデート
 
void SetWaitMode (string waitMode)
 待機状態を設定
 
void CallNextMethod ()
 次のメソッドを呼ぶ
 
bool IsFastForward ()
 早送りか
 
void Push (Action action)
 ログの挙動を予約する。 引数の内容は MV.BattleLogMethod と同じ
 
void Clear ()
 表示を消去。区切り行数の記録も消去
 
void Wait (int time=-1)
 待つ
 
void WaitForEffect ()
 エフェクトを待つ
 
void WaitForMovement ()
 動作を待つ
 
void WaitFotWaitTime ()
 待ち時間完了まで待つ
 
void AddText (string text)
 行を追加
 
void PushBaseLine ()
 区切り行数を記録
 
void PopBaseLine ()
 記録した区切り行数に戻る
 
void WaitForNewLine ()
 新たな行を待つ
 
void PopupDamage (GameBattler target)
 ダメージを表示
 
void PerformActionStart (GameBattler subject, GameAction action)
 行動の開始を適用
 
void PerformAction (GameBattler subject, GameAction action)
 行動を適用
 
void PerformActionEnd (GameBattler subject)
 行動の終了を適用
 
void PerformDamage (GameBattler target)
 ダメージを適用
 
void PerformMiss (GameBattler target)
 攻撃失敗を適用
 
void PerformRecovery (GameBattler target)
 回復を適用
 
void PerformEvasion (GameBattler target)
 回避を適用
 
void PerformMagicEvasion (GameBattler target)
 魔法反射を適用
 
void PerformCounter (GameBattler target)
 カウンター攻撃を適用
 
void PerformReflection (GameBattler target)
 反射を適用
 
void PerformSubstitute (GameBattler substitute, GameBattler target)
 [かばう]行動を適用
 
void PerformCollapse (GameBattler target)
 倒れたことを適用
 
void ShowAnimation (GameBattler subject, List< GameBattler > targets, GameAction action)
 アニメを表示
 
void ShowAttackAnimation (GameBattler subject, List< GameBattler > targets)
 攻撃アニメを表示
 
void ShowActorAttackAnimation (GameActor subject, List< GameBattler > targets)
 アクターの攻撃アニメを表示
 
void ShowEnemyAttackAnimation (GameEnemy subject, List< GameBattler > targets)
 敵の攻撃アニメを表示
 
void ShowNormalAnimation (List< GameBattler > targets, string animationId, bool mirror=false)
 通常アニメーション開始
 
override void Refresh ()
 コンテンツの再描画
 
void StartTurn ()
 ターン開始
 
void StartAction (GameBattler subject, GameAction action, List< GameBattler > targets)
 行動の開始
 
void EndAction (GameBattler subject)
 アクションの終了
 
void DisplayCurrentState (GameBattler subject)
 現在のステートを表示
 
void DisplayRegeneration (GameBattler subject)
 再生を表示
 
void DisplayAction (GameBattler subject, GameItem item)
 指定された行動( [スキル][アイテム]の使用 )を表示
 
void DisplayCounter (GameBattler target)
 カウンター攻撃を表示
 
void DisplayReflection (GameBattler target)
 反射を表示
 
void DisplaySubstitute (GameBattler substitute, GameBattler target)
 [かばう]行動を表示
 
void DisplayActionResults (GameBattler subject, GameBattler target)
 行動結果を表示
 
void DisplayFailure (GameBattler target)
 行動失敗を表示
 
void DisplayCritical (GameBattler target)
 クリティカル攻撃を表示
 
void DisplayDamage (GameBattler target)
 ダメージ表示
 
void DisplayMiss (GameBattler target)
 攻撃の失敗を表示
 
void DisplayEvasion (GameBattler target)
 回避を表示
 
void DisplayHpDamage (GameBattler target)
 HPへのダメージを表示
 
void DisplayMpDamage (GameBattler target)
 MPへのダメージを表示
 
void DisplayTpDamage (GameBattler target)
 TPへのダメージを表示
 
void DisplayAffectedStatus (GameBattler target)
 能力値変化を表示
 
void DisplayAutoAffectedStatus (GameBattler target)
 自動での能力値変化を表示
 
void DisplayChangedStates (GameBattler target)
 ステートの変化を表示
 
void DisplayAddedStates (GameBattler target)
 追加されたステートを表示
 
void DisplayRemovedStates (GameBattler target)
 ステートが外れたことを表示
 
void DisplayChangedBuffs (GameBattler target)
 [強化][弱体]の変化を表示。
 
void DisplayBuffs (GameBattler target, List< int > buffs, string fmt)
 バフ表示
 
string MakeHpDamageText (GameBattler target)
 HPへのダメージのメッセージを生成
 
string MakeMpDamageText (GameBattler target)
 MPへのダメージのメッセージを生成
 
string MakeTpDamageText (GameBattler target)
 TPへのダメージのメッセージを生成
 
void DrawLineText (int index)
 指定行の文字を描画
 
bool IsShowMessage ()
 メッセージ表示中かどうか
 
override void Open ()
 メッセージWindowを開く
 
override void Close ()
 メッセージWindowを閉じる
 
- Public Member Functions inherited from RPGMaker.Codebase.Runtime.Battle.Window.WindowSelectable
override void Initialize ()
 初期化
 
int Index ()
 選択中の項目の番号を返す
 
virtual int MaxItems ()
 ウィンドウが持つ最大項目数を返す
 
new void Activate ()
 ウィンドウをアクティブにする
 
new void Deactivate ()
 非アクティブにする
 
void Select (int index)
 指定した番号の項目を選択
 
void Deselect ()
 全項目を非選択
 
void Reselect ()
 項目の再選択
 
void SetHelpWindow (WindowHelp helpWindow)
 ヘルプウィンドウを設定
 
void ShowHelpWindow ()
 ヘルプウィンドウを表示
 
void HideHelpWindow ()
 ヘルプウィンドウを非表示
 
void SetHandler (string symbol, Action method)
 ハンドラを設定
 
bool IsHandled (string symbol)
 指定されたハンドラが利用可能か
 
void CallHandler (string symbol)
 指定したハンドラを呼ぶ
 
new void Update ()
 Update処理
 
bool IsCancelEnabled ()
 キャンセルが可能か
 
virtual void ProcessOk ()
 OKの処理
 
virtual void CallOkHandler ()
 OKのハンドラを呼ぶ
 
void ProcessCancel ()
 キャンセルを処理
 
void CallCancelHandler ()
 キャンセルのハンドラを呼ぶ
 
void CallUpdateHelp ()
 ヘルプのアップデートを呼ぶ
 
virtual void UpdateHelp ()
 ヘルプウィンドウをアップデート
 
void SetHelpWindowItem (GameItem item)
 指定項目をヘルプウィンドウに表示
 
virtual void DrawAllItems ()
 全項目を描画
 
virtual void DrawItem (int index)
 指定番号の項目を描画 overrideして利用する
 
virtual void ClearItem ()
 指定した番号の項目を削除
 
virtual void Refresh ()
 コンテンツの再描画
 
void OnClickSelection (int index)
 ボタン選択時処理
 
- Public Member Functions inherited from RPGMaker.Codebase.Runtime.Battle.Window.WindowBattle
virtual void Initialize ()
 初期化
 
virtual void UpdateTimeHandler ()
 Update処理
 
void UpdateOpen ()
 ウィンドウを開いている状態をアップデート
 
bool IsOpen ()
 ウィンドウが完全に開いているか
 
bool IsClosed ()
 ウィンドウが完全に閉じているか
 
void UpdateClose ()
 ウィンドウを閉じている状態をアップデート
 
virtual void Open ()
 ウィンドウを開く
 
virtual void Close ()
 ウィンドウを閉じる
 
virtual bool IsOpening ()
 ウィンドウが開いている途中か
 
virtual bool IsClosing ()
 ウィンドウが閉じている途中か
 
virtual void Show ()
 ウィンドウを表示
 
virtual void Hide ()
 ウィンドウを非表示(閉じるわけではない)
 
void Activate ()
 ウィンドウをアクティブにする
 
- Public Member Functions inherited from RPGMaker.Codebase.Runtime.Common.WindowBase
delegate void OnComplete ()
 
virtual void Init ()
 
virtual void Update ()
 
virtual void Back ()
 

Protected Attributes

List< TextMeshProUGUI > textField
 文字を表示する場所(TextMeshProUGUI) 特殊文字(Ⅲなど)が含まれていると、文字の描画領域(高さ)に変動が出てしまうため、 そのような場合でも表示場所が変わらないように、1行ずつ部品を用意している 最大で4行分の表示
 
- Protected Attributes inherited from RPGMaker.Codebase.Runtime.Battle.Window.WindowSelectable
Dictionary< string, Action > _handlers
 入力ハンドラ
 
int _index
 選択されている項目の番号
 
Image _iconImage = null
 アイコン画像
 
List< Selectorselectors
 Selector.
 
- Protected Attributes inherited from RPGMaker.Codebase.Runtime.Battle.Window.WindowBattle
int _iconWidth = 32
 [static] 基本のアイコン幅 (規定値 : 32)
 
int _iconHeight = 32
 [static] 基本のアイコン高さ (規定値 : 32)
 
int _faceWidth = 144
 [static] 基本の顔画像の幅 (規定値 : 144)
 
int _faceHeight = 144
 [static] 基本の顔画像の高さ (規定値 : 144)
 
new GameObject gameObject
 
GameObject GraphicLineObject
 
GameObject GraphicObject
 
- Protected Attributes inherited from RPGMaker.Codebase.Runtime.Common.WindowBase
GameStateHandler.GameState _gameState = GameStateHandler.GameState.TITLE
 Window表示時のゲームの状態 キー入力
 
GameObject _selectedItem
 
SystemSettingDataModel systemSettingDataModel
 

Additional Inherited Members

- Public Attributes inherited from RPGMaker.Codebase.Runtime.Battle.Window.WindowBattle
int Openness
 開放度(0 〜 255)
 
bool Pause
 ポーズサインが表示中か
 
- Public Attributes inherited from RPGMaker.Codebase.Runtime.Common.WindowBase
GameObject[] commonWindowObject
 
- Static Public Attributes inherited from RPGMaker.Codebase.Runtime.Common.WindowBase
const string UI_PATH = "Assets/RPGMaker/Storage/Images/Ui/"
 
- Protected Member Functions inherited from RPGMaker.Codebase.Runtime.Battle.Window.WindowSelectable
Sprite GetItemImage (string iconName)
 アイコン設定
 
- Protected Member Functions inherited from RPGMaker.Codebase.Runtime.Battle.Window.WindowBattle
void Deactivate ()
 非アクティブにする
 
- Properties inherited from RPGMaker.Codebase.Runtime.Battle.Window.WindowBattle
bool Visible [get, set]
 表示状態
 
bool Active [get, set]
 Activeかどうか
 
int Opacity [get, set]
 透過度
 

Detailed Description

戦闘ログのウィンドウ このウィンドウのメソッドの多くは、push() によって _methods プロパティに保存され順次実行される メッセージの表示だけではなく、サイドビューのアクションなども処理する、マネージャ的な役割も持っている

Member Function Documentation

◆ AddText()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.AddText ( string  text)

行を追加

Parameters
text

◆ Close()

override void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.Close ( )
virtual

メッセージWindowを閉じる

Reimplemented from RPGMaker.Codebase.Runtime.Battle.Window.WindowBattle.

◆ DisplayAction()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayAction ( GameBattler  subject,
GameItem  item 
)

指定された行動( [スキル][アイテム]の使用 )を表示

Parameters
subject
item

◆ DisplayActionResults()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayActionResults ( GameBattler  subject,
GameBattler  target 
)

行動結果を表示

Parameters
subject
target

◆ DisplayAddedStates()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayAddedStates ( GameBattler  target)

追加されたステートを表示

Parameters
target

◆ DisplayAffectedStatus()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayAffectedStatus ( GameBattler  target)

能力値変化を表示

Parameters
target

◆ DisplayAutoAffectedStatus()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayAutoAffectedStatus ( GameBattler  target)

自動での能力値変化を表示

Parameters
target

◆ DisplayBuffs()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayBuffs ( GameBattler  target,
List< int >  buffs,
string  fmt 
)

バフ表示

Parameters
target
buffs
fmt

◆ DisplayChangedBuffs()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayChangedBuffs ( GameBattler  target)

[強化][弱体]の変化を表示。

Parameters
target

◆ DisplayChangedStates()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayChangedStates ( GameBattler  target)

ステートの変化を表示

Parameters
target

◆ DisplayCounter()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayCounter ( GameBattler  target)

カウンター攻撃を表示

Parameters
target

◆ DisplayCritical()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayCritical ( GameBattler  target)

クリティカル攻撃を表示

Parameters
target

◆ DisplayCurrentState()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayCurrentState ( GameBattler  subject)

現在のステートを表示

Parameters
subject

◆ DisplayDamage()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayDamage ( GameBattler  target)

ダメージ表示

Parameters
target

◆ DisplayEvasion()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayEvasion ( GameBattler  target)

回避を表示

Parameters
target

◆ DisplayFailure()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayFailure ( GameBattler  target)

行動失敗を表示

Parameters
target

◆ DisplayHpDamage()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayHpDamage ( GameBattler  target)

HPへのダメージを表示

Parameters
target

◆ DisplayMiss()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayMiss ( GameBattler  target)

攻撃の失敗を表示

Parameters
target

◆ DisplayMpDamage()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayMpDamage ( GameBattler  target)

MPへのダメージを表示

Parameters
target

◆ DisplayReflection()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayReflection ( GameBattler  target)

反射を表示

Parameters
target

◆ DisplayRegeneration()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayRegeneration ( GameBattler  subject)

再生を表示

Parameters
subject

◆ DisplayRemovedStates()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayRemovedStates ( GameBattler  target)

ステートが外れたことを表示

Parameters
target

◆ DisplaySubstitute()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplaySubstitute ( GameBattler  substitute,
GameBattler  target 
)

[かばう]行動を表示

Parameters
substitute
target

◆ DisplayTpDamage()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DisplayTpDamage ( GameBattler  target)

TPへのダメージを表示

Parameters
target

◆ DrawLineText()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.DrawLineText ( int  index)

指定行の文字を描画

Parameters
index

◆ EndAction()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.EndAction ( GameBattler  subject)

アクションの終了

Parameters
subject

◆ Initialize()

override void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.Initialize ( )
virtual

初期化処理

Reimplemented from RPGMaker.Codebase.Runtime.Battle.Window.WindowBattle.

◆ IsBusy()

bool RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.IsBusy ( )

動作中か

Returns

◆ IsFastForward()

bool RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.IsFastForward ( )

早送りか

Returns

◆ IsShowMessage()

bool RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.IsShowMessage ( )

メッセージ表示中かどうか

Returns

◆ MakeHpDamageText()

string RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.MakeHpDamageText ( GameBattler  target)

HPへのダメージのメッセージを生成

Parameters
target
Returns

◆ MakeMpDamageText()

string RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.MakeMpDamageText ( GameBattler  target)

MPへのダメージのメッセージを生成

Parameters
target
Returns

◆ MakeTpDamageText()

string RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.MakeTpDamageText ( GameBattler  target)

TPへのダメージのメッセージを生成

Parameters
target
Returns

◆ MessageSpeed()

int RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.MessageSpeed ( )

メッセージ描画速度

Returns

◆ Open()

override void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.Open ( )
virtual

メッセージWindowを開く

Reimplemented from RPGMaker.Codebase.Runtime.Battle.Window.WindowBattle.

◆ PerformAction()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformAction ( GameBattler  subject,
GameAction  action 
)

行動を適用

Parameters
subject
action

◆ PerformActionEnd()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformActionEnd ( GameBattler  subject)

行動の終了を適用

Parameters
subject

◆ PerformActionStart()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformActionStart ( GameBattler  subject,
GameAction  action 
)

行動の開始を適用

Parameters
subject
action

◆ PerformCollapse()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformCollapse ( GameBattler  target)

倒れたことを適用

Parameters
target

◆ PerformCounter()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformCounter ( GameBattler  target)

カウンター攻撃を適用

Parameters
target

◆ PerformDamage()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformDamage ( GameBattler  target)

ダメージを適用

Parameters
target

◆ PerformEvasion()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformEvasion ( GameBattler  target)

回避を適用

Parameters
target

◆ PerformMagicEvasion()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformMagicEvasion ( GameBattler  target)

魔法反射を適用

Parameters
target

◆ PerformMiss()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformMiss ( GameBattler  target)

攻撃失敗を適用

Parameters
target

◆ PerformRecovery()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformRecovery ( GameBattler  target)

回復を適用

Parameters
target

◆ PerformReflection()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformReflection ( GameBattler  target)

反射を適用

Parameters
target

◆ PerformSubstitute()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PerformSubstitute ( GameBattler  substitute,
GameBattler  target 
)

[かばう]行動を適用

Parameters
substitute
target

◆ PopupDamage()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.PopupDamage ( GameBattler  target)

ダメージを表示

Parameters
target

◆ Push()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.Push ( Action  action)

ログの挙動を予約する。 引数の内容は MV.BattleLogMethod と同じ

Parameters
action

◆ Refresh()

override void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.Refresh ( )
virtual

コンテンツの再描画

Reimplemented from RPGMaker.Codebase.Runtime.Battle.Window.WindowSelectable.

◆ SetWaitMode()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.SetWaitMode ( string  waitMode)

待機状態を設定

Parameters
waitMode

◆ ShowActorAttackAnimation()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.ShowActorAttackAnimation ( GameActor  subject,
List< GameBattler targets 
)

アクターの攻撃アニメを表示

Parameters
subject
targets

◆ ShowAnimation()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.ShowAnimation ( GameBattler  subject,
List< GameBattler targets,
GameAction  action 
)

アニメを表示

Parameters
subject
targets
animationId

◆ ShowAttackAnimation()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.ShowAttackAnimation ( GameBattler  subject,
List< GameBattler targets 
)

攻撃アニメを表示

Parameters
subject
targets

◆ ShowEnemyAttackAnimation()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.ShowEnemyAttackAnimation ( GameEnemy  subject,
List< GameBattler targets 
)

敵の攻撃アニメを表示

Parameters
subject
targets

◆ ShowNormalAnimation()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.ShowNormalAnimation ( List< GameBattler targets,
string  animationId,
bool  mirror = false 
)

通常アニメーション開始

Parameters
targets
animationId
mirror

◆ StartAction()

void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.StartAction ( GameBattler  subject,
GameAction  action,
List< GameBattler targets 
)

行動の開始

Parameters
subject
action
targets

◆ UpdateTimeHandler()

new void RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.UpdateTimeHandler ( )
virtual

Update処理

Reimplemented from RPGMaker.Codebase.Runtime.Battle.Window.WindowBattle.

◆ UpdateWait()

bool RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.UpdateWait ( )

待ち時間のアップデート

Returns

◆ UpdateWaitCount()

bool RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.UpdateWaitCount ( )

待ちカウントのアップデート

Returns

◆ UpdateWaitMode()

bool RPGMaker.Codebase.Runtime.Battle.Window.WindowBattleLog.UpdateWaitMode ( )

待ち状態のアップデート

Returns