0.2 visual novel plugin


(ian) #1

i am using unity 2018.2.0f2.
0.2 bgs and visual novel plugin and getting this error.


(Leslie Young) #2

You do not have DoTween installed. It is one of the requirements of this tool. See setup docs. http://www.plyoung.com/bgs/bgs-setup/


(ian) #3

thanks for reply.
Is there way to access bgs variable through script?


(Leslie Young) #4

(ian) #5

how to set global variable value too temporary variable to do addition ?

public void addPoint(int val) {
        GlobalVariables.Instance.SetValue("helth", val);
 }

currently i am using this script and just call this method using Message object and give value to set.
but i want to do addition or subtraction but for that i need to get global variable value first.

i have read the blog you posted but i am not able to do that.
can show one example to do that?

bgs vn engine command can be use in blox visual editor?
also is it possible to select multiple node for copy/paste ?

one feature request if possible can you add next and previous button in character action for pose selection.it get tedious when there are lot of pose.


(Leslie Young) #6

how to set global variable value too temporary variable to do addition ?

I am not sure what you are asking about.

addition or subtraction

There is a Maths operation node under Value > Calc of the FlowGraph.

bgs vn engine command can be use in blox visual editor?

Which commands specifically? The VN Engine is best driven via the FlowGraph system.

Note that the visual scripting systems is currently in beta and not all features are yet available, like Blocks from the BGS Engine or the ability to trigger Blox execution from the FlowGraph and graph execution from Blox.

is it possible to select multiple node for copy/paste ?

No, you can only have one node copied at a time.

one feature request if possible can you add next and previous button in character action for pose selection.it get tedious when there are lot of pose.

Not quite sure what you mean. Can you explain with an image?
Btw, it is possible to save the current configuration of a node by using the little button top-right. That might help setting some defaults you commonly use on that node.

Image4


(ian) #7

I am not sure what you are asking about.

i want to do addition or subtraction on global variable through script.

currently i can set global variable value like this

GlobalVariables.Instance.SetValue(“health”, 20);

but how to add 20 point to health global variable through script ?

Not quite sure what you mean. Can you explain with an image?

in character action node

can we have previous and next buttons to cycle through pose ?


(Leslie Young) #8

but how to add 20 point to health global variable through script ?

this?

int hp = (int)GlobalVariables.Instance.GetValue(“health”);
hp = hp + 5;
GlobalVariables.Instance.SetValue(“health”, hp);