rules_ai 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rules_ai.rb +47 -0
- data/lib/rules_ai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ccb715e8bc3f898d3fd86f18b13a09a8ccbf13400b3942d813d706fefb07553
|
4
|
+
data.tar.gz: dd41894768f44f30f532214b3e47d7f0eb29e784ef8011e669902cf447235897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 707ff61984d894d3fd6f71b23195f066dd0a169debe16ec0b336c5ef63e6de2199ac3f0675ddbce657df264896ce0eae9539073f9e287cd0b4c447d2500fdee1
|
7
|
+
data.tar.gz: 107556d60cae849484ebe49ef3338b315a5a30e4b1be0d704af38c84857a42bd5d79a3c8cdf85476333978ff11b9312d330159b8245927b019e6baade386c357
|
data/lib/rules_ai.rb
CHANGED
@@ -277,6 +277,53 @@ module RulesAi
|
|
277
277
|
puts "The hyper inches of the tessaract is #{hyper_inches} hyper distance."
|
278
278
|
end
|
279
279
|
|
280
|
+
def self.write_renpy_script
|
281
|
+
require "rules_ai"
|
282
|
+
|
283
|
+
RulesAi::Rules_Set.write_poetry
|
284
|
+
|
285
|
+
poem = File.readlines("output/poetry/poem.txt")
|
286
|
+
|
287
|
+
first_line = poem[0].strip
|
288
|
+
second_line = poem[1].strip
|
289
|
+
third_line = poem[2].strip
|
290
|
+
fourth_line = poem[3].strip
|
291
|
+
fifth_line = poem[4].strip
|
292
|
+
sixth_line = poem[5].strip
|
293
|
+
seventh_line = poem[6].strip
|
294
|
+
eighth_line = poem[7].strip
|
295
|
+
|
296
|
+
bot_name = "Bianca"
|
297
|
+
|
298
|
+
ai_visual_novel = "define ai = Character('#{bot_name}')
|
299
|
+
|
300
|
+
label start:
|
301
|
+
scene bg black
|
302
|
+
|
303
|
+
ai '#{first_line}'
|
304
|
+
|
305
|
+
ai '#{second_line}'
|
306
|
+
|
307
|
+
ai '#{third_line}'
|
308
|
+
|
309
|
+
ai '#{fourth_line}'
|
310
|
+
|
311
|
+
ai '#{fifth_line}'
|
312
|
+
|
313
|
+
ai '#{sixth_line}'
|
314
|
+
|
315
|
+
ai '#{seventh_line}'
|
316
|
+
|
317
|
+
ai '#{eighth_line}'
|
318
|
+
|
319
|
+
return
|
320
|
+
"
|
321
|
+
|
322
|
+
open("output/renpy/script.rpy", "w") { |f|
|
323
|
+
f.puts ai_visual_novel
|
324
|
+
}
|
325
|
+
end
|
326
|
+
|
280
327
|
def self.line
|
281
328
|
puts '
|
282
329
|
+----------------+
|
data/lib/rules_ai/version.rb
CHANGED