diff --git a/Random.gd b/Random.gd index 4860685..70a2a26 100644 --- a/Random.gd +++ b/Random.gd @@ -1,4 +1,4 @@ extends Node -func generate_random(a: int, b: int) -> int: - return randi_range(a, b) +func dialogic_random(a: int, b: int): + Dialogic.VAR.set_variable("RNG", randi_range(a, b)) diff --git a/project.godot b/project.godot index 706104d..f6a5bdf 100644 --- a/project.godot +++ b/project.godot @@ -29,6 +29,7 @@ directories/dtl_directory={ } layout/style_directory={} variables={ +"RNG": "", "RNG_1_4": "", "for_timeline_calls": { "requested_amount": "",