Osiris/API/MakeWar

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

Throws a UserMakeWar(_Source, _Target, 1) 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 0 (= hostile), 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