Automatically Run Nani Script during Integration

Using Naninovel C# APIs: adding custom actor implementations or commands, overriding engine services, integrating with other systems, etc.
Post Reply
GriffinSTatum
Posts: 2
Joined: 20 Jun 2021 22:43

Automatically Run Nani Script during Integration

Post by GriffinSTatum »

Hi, I've been working with Naninovel for a bit for my 2D Fighting Game(which is using UFE2), and have been fairly successful integrating the two engines together. The issue I'm currently running into is how to launch the scripts. Due to the nature of the game, I don't want to bring up a prompt asking the player if they'd like to go to Novel Mode, I'd just like a script to play if a specific game object is active(TextureConversationBeforeBattleScreen). Is there an easy way to implement this? Maybe an alternative to having the script activate from the "On Click" method?

Elringus
admin
Posts: 521
Joined: 11 May 2020 18:03

Re: Automatically Run Nani Script during Integration

Post by Elringus »

Hi, Check out integration example project (https://naninovel.com/guide/integration-options), it plays a script with IScriptPlayer engine service.

Post Reply