Play your scheme
The test run showed that your scheme works. Now for the real thing: play it in the game, the way your player would.
You need the scene from Set up your first scene and the scheme from Make your first scheme.
1. Add the ready-made UI
Section titled “1. Add the ready-made UI”- Choose Tools > MrW > Intrigues > UI Setup.
- On the Start tab, click Use the ready-made UI.
It adds ordinary objects to your open scene: a small panel with your portrait and the date, notices for news, and windows for a character, a clan and your running schemes. It also adds an EventSystem and a tooltip object if the scene has none. One undo removes it all.
2. Press Play and start the scheme
Section titled “2. Press Play and start the scheme”- Press Play in Unity.
- Press P. Your character’s window opens.
- Under Schemes to start, find The Letter and click Start. When the window asks Start The Letter?, click Start.
Your dialogue appears. Pick Send the letter and the scheme rolls its chance.
The Letter is in your own window because it needs no target. A scheme with a target is started from the target’s window.
Keys of the ready-made UI
Section titled “Keys of the ready-made UI”| Key | What it does |
|---|---|
| P | opens your character |
| C | opens your clan |
| J | opens the running schemes |
| Escape | goes back one window |
Press the same key again to close its window.
If nothing happens
Section titled “If nothing happens”Open UI Setup again and choose the Scene check tab. It lists in plain sentences what the scene is missing, and offers a button where it can fix it. If keys do nothing, check the input setting. The keys also need a player actor.
Start it from code
Section titled “Start it from code”Your own script can start a scheme too:
actor.StartScheme("The Letter");actor is the actor who becomes the conspirator.