Osiris/API/MakePeace

From Divinity Engine Wiki
Revision as of 11:23, 2 October 2018 by Tinkerer (talk | contribs) (Documented MakePeace)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full MakePeace(s)
  • call MakeWar((CHARACTERGUID)_Source, (CHARACTERGUID)_Target, (INTEGER)_IgnoreVote)
Description

Throws a UserMakeWar(_Source, _Target, 0) event. The _IgnoreVote parameter is currently ignored.

Notes
  • If _Source or _Dest is invalid or not currently a player character, nothing will happen.
  • This call does not do anything besides throwing the aforementioned UserMakeWar event. However, the Shared mod intercepts this event, and reacts to it by changing the relation of the alignments between the characters of the users controlling respectively _Source and _Target to 100 (= allied), if neither of these characters is currently in arena mode.
  • If both characters are controlled by the same user, this will not have any effect.
See Also