Skip to content

Swap Party Member

Swap Party Member

Exchanges the positions of two characters in the party.

Properties

System

Name Explanation Type
Add to Scene Whether the change is immediately reflected in the current scene. When enabled, the party display on the map updates right away. Toggle
Source The first party member to swap. Actor Reference
Target The second party member to swap with the source. Actor Reference

Examples

Swap Two Party Members

This exchanges the positions of party member 0 and party member 1 in the party.

swap_party_member(party_member(0), party_member(1));
{"Data":{"IsReflectedImmediately":false,"Source":{"ReferenceType":0,"Index":0,"IsSelf":false,"IsEntity":false,"IsPartyMember":true,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"Target":{"ReferenceType":0,"Index":0,"IsSelf":false,"IsEntity":false,"IsPartyMember":true,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Party.SwapPartyMemberCommand"}

Swap Two Party Members with Immediate Scene Update

This exchanges two party members and immediately updates the scene to reflect the change.

swap_party_member(party_member(0), party_member(1), immediate);
{"Data":{"IsReflectedImmediately":true,"Source":{"ReferenceType":0,"Index":0,"IsSelf":false,"IsEntity":false,"IsPartyMember":true,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"Target":{"ReferenceType":0,"Index":0,"IsSelf":false,"IsEntity":false,"IsPartyMember":true,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Party.SwapPartyMemberCommand"}