A couple of questions

Announcements, support questions, and discussion for the Intrigues.
Post Reply
pawnee
Posts: 2
Joined: Sat Feb 24, 2024 1:02 pm

A couple of questions

Post by pawnee »

Hi,
Intrigues is an amazing asset, it truly is.
I do have a couple of questions though since i'm a complete unity newbie.

- How can I add a tutorial just like in the demo? (I assume I should create an empty and add a script that invokes a dialog. Any chance you could share the code to invoke a specific dialog?)
- Are policies only manageable thought scripting ("Ep.11.5 - Intrigues | Coffe Break 2") ?
- I noticed the "Age Check" function that forbids one to marry someone with a 7 years age difference. Where can I change the 7 value?

Thank you.
User avatar
valqorr
Site Admin
Posts: 31
Joined: Tue Feb 13, 2024 4:02 pm

Re: A couple of questions

Post by valqorr »

Greetings! Thank you for expressing your appreciation for Intrigues! Your message has truly uplifted my spirits.

Now, let's address your queries one by one, ensuring clarity and accuracy in our responses:



  1. Creating tutorial narratives with Intrigues is a straightforward process.

    Allow me to guide you through setting up a sample tutorial flow:
    Click to see the image
    Image
    Next, we'll initiate the scheme we've created with the following script:

    Code: Select all

    using Nullframes.Intrigues;
    using UnityEngine;
    
    public class Start_Tutorial : MonoBehaviour
    {
        void Start()
        {
            IM.Player.StartScheme("Tutorial");
        }
    }
    
  2. Regarding policies, their effects are entirely user-driven. (In the Advanced AI extension, policies will influence AI behaviors.)

    To assist you further, I've provided some helpful links below:

    Nodes
    Scripting
    Events
  3. As for the 'Love' scheme in the demo, we've included a condition involving a 7-year age difference. Here's how it's implemented

    First, create a method named 'AgeCheck' that returns 'IResult'. Then, add [IInvokeAttribute] to the method. (You can find this in the 'Demo_Methods' script in the demo scene.)
    Click to see the image
    Image
    Code

    Code: Select all

    [IInvoke("Age Check")]
    private IResult AgeCheck(Actor conspirator, Actor target) {
        if (conspirator == null || target == null) return IResult.Null;
    
        // Checks the age difference. Returns False if the difference is greater than 7.
        if (Math.Abs(conspirator.Age - target.Age) > 7) {
            return IResult.False;
        }
    
        return IResult.True;
    }
    
    Subsequently, navigate to the 'Rules' tab, access the 'Love Rule' flow, and call the method using the 'Invoke Node'.
    Click to see the image
    Image
    This approach allows you to access custom methods for more detailed queries.

    For further guidance, I've provided some additional links:
    I hope this explanation proves beneficial.
    Following the 1.0.5 update, I plan to take a brief hiatus from the update series to extensively revise the documentation (wiki) for improved clarity and readability, alongside the incorporation of new documents. Additionally, a change in theme (departing from MediaWiki) is in the works.

    Furthermore, expect the release of numerous new tutorial videos covering a wide range of topics, catering to all skill levels.

    Your patience is greatly appreciated, and I remain committed to ensuring your seamless learning and utilization of Intrigues.
pawnee
Posts: 2
Joined: Sat Feb 24, 2024 1:02 pm

Re: A couple of questions

Post by pawnee »

Thank you so much!
Just added a 5 stars review because it is so worth it, and because you provided an amazing support.
Thank you!
User avatar
valqorr
Site Admin
Posts: 31
Joined: Tue Feb 13, 2024 4:02 pm

Re: A couple of questions

Post by valqorr »

You're welcome! I'm glad I could assist you. Your feedback and support mean a lot to us. If you have any more questions or need further assistance, feel free to ask.
Post Reply