From 8850b7b3043777be9fe2121d7e87e71821da15cd Mon Sep 17 00:00:00 2001 From: Spencer Killen Date: Sat, 26 Sep 2026 11:12:42 -0600 Subject: [PATCH 1/2] Add random --- Random.gd | 4 ++++ Random.gd.uid | 1 + project.godot | 1 + 3 files changed, 6 insertions(+) create mode 100644 Random.gd create mode 100644 Random.gd.uid diff --git a/Random.gd b/Random.gd new file mode 100644 index 0000000..4860685 --- /dev/null +++ b/Random.gd @@ -0,0 +1,4 @@ +extends Node + +func generate_random(a: int, b: int) -> int: + return randi_range(a, b) diff --git a/Random.gd.uid b/Random.gd.uid new file mode 100644 index 0000000..00b01cf --- /dev/null +++ b/Random.gd.uid @@ -0,0 +1 @@ +uid://cu3n7igqstbxi diff --git a/project.godot b/project.godot index 2ef45ed..706104d 100644 --- a/project.godot +++ b/project.godot @@ -17,6 +17,7 @@ config/features=PackedStringArray("4.7") Dialogic="*uid://ds2q0uclmolvu" Economy="*uid://dnpioqaes87yb" +Random="*uid://cu3n7igqstbxi" [dialogic] From ff357a71314753ceaaaa23cdbd71f726a28032ef Mon Sep 17 00:00:00 2001 From: Spencer Killen Date: Sat, 26 Sep 2026 11:14:59 -0600 Subject: [PATCH 2/2] . --- Random.gd | 4 ++-- project.godot | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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": "",