NPC Framework Script

If you liked this item, please rate it up on Steam Workshop page.

Author: Condasoft

Last revision: 17 Feb, 2025 at 22:17 UTC (1)

File size: 116.12 KB

On Steam Workshop

Description:

Now supports dedicated servers.

I wanted a dialogue framework, one with RPG mechanics, so I came up with some characters, and I think the results were pretty good.

It’s not really important what the characters are saying; I made this as an example where Earth has been hit by a solar flare, resulting in a global power outage. What is important is that you can change the dialogue, animations, and actionable responses to suit your own needs. Obviously, yours and other Steam users’ characters and dialogue will be different, so I just included several characters, all with varying ways of articulating and structuring the actual dialogue and actions within the script, hoping that it will be a "one size fits all" solution.

The dialogue scripts can be found in the init of each character. If you make a badass character with some unique dialogues or features, you can share them in the discussion section of this workshop item. I have included a template.

Just note there is a distance check, so if the dialogue messes up, you can just walk away and come back again to restart the dialogue. If anyone finds any problems, let me know, and I will try to fix them ASAP.

This script uses a unit’s init in order to initialize it. To use it in your own mission, you need to place the composition in the editor using the custom composition system, which can be found in the right panel of the editor.

You are free to use, modify, and distribute this script for personal or non-commercial projects. However, you may not use it or parts of it in any monetized content without contacting me for permission first.

While not necessary I highly recommend using Notepad++ as it is a great tool for replacing dialogue in script. With its Find & Replace feature, you can quickly swap out dialogues for your own by pressing ctrl+F I also highly recommend installing the the sqf syntax highlighting language plugin as it makes the code easier to comprehend.

If for some reason you would like to support me patreon.com/CondaScripts

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.