This is an old revision of the document!
Table of Contents
VR Immersion Library
Current Version: 1
First included with ComProj v0.90
Needs the VR Logic Library to properly operate.
In a nutshell this library allows you to create custom messages, decisions and action cards. Some key ingredients to give your scenario's some flair!
Base Message Table & Message Content Table & Decision Table
These two tables work together and allow you some level of dynamics to create your messages and decisions.
Base Message Table
Col 0: ID
Col 1: Title of message
Col 2: (Optional) Font name (like georgia.ttf, must be present in fonts/ directory; if left blank custom font arial.ttf is used)
Col 3: IF Logic (for example [turn]=0 for first regime and [turn]=1 for second regime or for a message on round 4 for second regime [round]=4@[turn]=1)
Col 4: (Optional) SET Logic (you might want to change a flag back again to 0 so a message does not keep showing up)
Col 5: (Optional) Show Mode: 0 = In REPS tab only, 1 = On startup Only, 2 = On startup and in REPS tab, 3 = As a popup (only use for feedback for custom action card play)
Message Content Table
Now to get some actual text and imagery in your messages.
Col 0: Message ID (must correspond to the Base Message Table)
Col 1: (Optional) IF Logic
Col 2: (Optional)X (offset x in pixels; if left blank or 0 will be posted aligned to left)
Col 3: (Optional)Y (offset y in pixels; if left blank or 0 will be posted under the last part of content of this message, or if it is the first part at the top)
Col 4: (optional) Event picture
Col 5: (Optional) Text (if event picture specified then text will NOT be rendered)
Col 6: (Optional) Font Size (if 0 or empty the default font size will be used)
Decision Table
You are advised to add multiple decisions to a message if you want to use them. Since only 1 choice will make the decision not very interesting.
Col 0: Message ID (must correspond to the Base Message Table)
Col 1: (Optional) IF Logic
Col 2: Decision Text
Col 3: Decision Detail (2nd line of smaller text)
Col 4: PP cost
Col 5: SET logic (if this decision is chosen by the player)
