Home Artists Posts Import Register

Content

Hi all.

More modding stuff.

New keyword that will let you check the triggers in conversation itself and then jump to an appropriate line.

I've named it "branch". Maybe not the best but eh. If you have a suggestion please put it in the comments.


As explained in previous post, you can create custom triggers and set them to true in whatever conversation you want.

The "branch" keyword will check these triggers and jump to the line you specified. 

The example above is from a modded third girl.

Inside the branch keyword you put integers which they serve as priority checks.
0:[...],
1:[...],
2:[...],

Lower the value, higher the priority.

In our case 0 key will be checked first and if it fails it will continue till the end.

Inside each priority key there's an array of triggers you want it to be checked and in the end a line number the conversation will jump to.
0:["mandy_introduction", "jane_introduction", 2]
So in our example it will check 2 triggers, mandy_intro and jane_intro. If they're both set to true the conversation will jump to line 2.

Let's say we didn't find Jane yet and so the "jane_introduction" trigger is still false.
Above check fails and go to the next one.
1:[ "jane_introduction", 3]
Well, we didn't met Jane yet, so this check also fails. To the next one.
2:["mandy_introduction",  4]
This one is true and the conversation will jump to line 4.


If all triggers are false, "branch" is ignored and we continue the conversation with "jump":5


If anyone wants to do stuff with this just ask me, I'm almost always online.
This is it for now. Dev version with this stuff in a day or two.

Thanks for the support.

Comments

Elemental Sheep

nice, looking forward to seeing what mods pop up

Calibos

It'd be cool if you could complete an example of a finished character (nothing fancy) and link a download. I would love to make character and storylines, but the instructions and the code is a little bit greek to me. If there was something completed that I could look at it'd be a huge help.