queue_wc_votes
Pre-configure World Congress votes by providing vote preferences to automatically cast them during the next session, avoiding interactive voting pauses.
Instructions
Pre-configure World Congress votes for the upcoming session.
Args:
votes: JSON array of vote objects, e.g.
'[{"hash": -513644209, "option": 1, "target": 2, "votes": 5}]'
hash = resolution type hash (from get_world_congress)
option = 1 for A, 2 for B
target = player ID for PlayerType resolutions (from get_world_congress
target list, e.g. [target=2] Portugal), or target value for
non-player resolutions. The handler resolves to the correct
0-based index at runtime.
votes = max votes to allocate (will use as many as favor allows)
Call this BEFORE end_turn when get_world_congress shows 0 turns until next
session. Registers an event handler that fires during WC processing and
casts your votes with the specified preferences.
If you don't call this, end_turn will pause at the World Congress session
and return control to you for interactive voting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| votes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |