イベントの自己切り替えを取得/設定するプラグイン – MND_GetSetSelfSwitch.js
- タイトル
- Get / set the self switch of the event.
- 作者名
- Mandarava様
- ヘルプ
-
JavaScript code:
Set the self switch for the event:
SetSelfSwitch(eventId, switchId, value, mapId)
- eventId: event id.
- switchId: self switch id, e.g. "A", "B", "C", "D".
- value: value of the self switch, e.g. true, false.
- mapId: the map id where the event is, if null, means in current map.
Set all self switches for all events in current map:
SetAllSelfSwitches(switchId, value);
- switchId: self switch id, e.g. "A", "B", "C", "D".
- value: value of the self switch, e.g. true, false.
Get the self switch of the event:
GetSelfSwitch(eventId, switchId, mapId)
- eventId: event id.
- switchId: self switch id, e.g. "A", "B", "C", "D".
- mapId: the map id where the event is, if null, means in current map.
Javascript example:
SetSelfSwitch(1, "A", true);
SetSelfSwitch(1, "A", true, 2);
SetAllSelfSwitches("A", true);
GetSelfSwitch(1, "A")
GetSelfSwitch(1, "A", 2) - パラメータ
-
( なし ) - ライセンス表記
- MIT License
紹介ページ https://github.com/XMandarava/Plugins4RMMV/blob/master/indie/MND_GetSetSelfSwitch.js