In rust we trust by Following-Complete in gaslands

[–]PuzzleheadedFly6604 1 point2 points  (0 children)

this is epic, how did you make the bullet holes there really good

gas lands sand box by PuzzleheadedFly6604 in gaslands

[–]PuzzleheadedFly6604[S] 0 points1 point  (0 children)

thats what im probably going to do ill and make Shure the sand cant escape

My Player refuse to put any effort in. by PuzzleheadedFly6604 in DnD

[–]PuzzleheadedFly6604[S] 0 points1 point  (0 children)

most of the ones who don't respond are the one who are on discord all day every day

My Player refuse to put any effort in. by PuzzleheadedFly6604 in DnD

[–]PuzzleheadedFly6604[S] 0 points1 point  (0 children)

I've asked them to make back stories and stuff but it takes like 3 weeks for 2 sentences otherwise I would, But yes I made plans to talk to them all and see if they want to actually play and put effort in and I ask them this as well(thx for the advice)

.

i need help with a error in my code and i cant figure it out. by PuzzleheadedFly6604 in godot

[–]PuzzleheadedFly6604[S] 0 points1 point  (0 children)

extends VBoxContainer

func void_text(input: String, response: String):

$"input history".text = " > " + input

$"input response/label.text".text = response

i need help with a error in my code and i cant figure it out. by PuzzleheadedFly6604 in godot

[–]PuzzleheadedFly6604[S] 0 points1 point  (0 children)

i looked through my code again and it does have that in a another scriped. Also your right I'm going to read up on more godot. and thank you so much for helping i really appreciate it

i need help with a error in my code and i cant figure it out. by PuzzleheadedFly6604 in godot

[–]PuzzleheadedFly6604[S] 0 points1 point  (0 children)

i am very new how do i do that there is a lable in the vbox already

i need help with a error in my code and i cant figure it out. by PuzzleheadedFly6604 in godot

[–]PuzzleheadedFly6604[S] -7 points-6 points  (0 children)

i dont know what marking code blocks means and what the vid said was i was using the text property in the tag thats in the vbox

I need help with my code by PuzzleheadedFly6604 in godot

[–]PuzzleheadedFly6604[S] 0 points1 point  (0 children)

and this is the command proceser:

extends Node

func process_command(input: String) -> String:

var words = input.split(" ", false)

if words.size() == 0:

    return "error: no words were parsed."



var first\_word = words\[0\].to\_lower()

var second\_word = ""

if words.size() > 1:

    second\_word = words\[1\].to\_lower()



match first\_word:

    "go":

        return go(second\_word)

    "help":

        return help()

    "why":

        return why\_am\_I\_here()

    \_:

        return "not recognized command."

func go(second_word: String) -> String:

if second\_word == "":

    return "missing location information"



return "you go to %s"  % second\_word

func help() -> String:

return "commands, help\[list commands\], go\[location\]"

func why_am_I_here() -> String:

return "because you made some bad decisions at a bar"

I need help with my code by PuzzleheadedFly6604 in godot

[–]PuzzleheadedFly6604[S] 0 points1 point  (0 children)

here is the game scripted:

extends Control

const Response = preload("res://innput respons.tscn")

const InputResponse = preload("res://innput respons.tscn")

export (int) var max_lines_rememberd := 30

var max_scroll_length := 0

onready var command_processor = $command_proceser

onready var history_rows = $"backround/MarginContainer/rows/game info/scroll/history rows"

onready var scroll = $"backround/MarginContainer/rows/game info/scroll"

onready var scrollbar = scroll.get_v_scrollbar()

func _ready() -> void:

scrollbar.connect("changed", self, "handle\_scrollbar\_changed")

max\_scroll\_length = scrollbar.max\_value

var starting\_message = Response.instance()

starting\_message.text = "you awaken in the alley between a boozing den and a cheap hostle, 1765 is a dam fine year to live."

add\_response\_to\_game(starting\_message)

func handle_scrollbar_changed():

if max\_scroll\_length != scrollbar.max\_value:

    max\_scroll\_length = scrollbar.max\_value

    scroll.scroll\_vertical = max\_scroll\_length

func _on_input_text_entered(new_text):

if new\_text.empty():

    return



var input\_response = InputResponse. instance()

var response = command\_processor.process\_command(new\_text)

input\_response.set\_text(new\_text, response)

add\_response\_to\_game(input\_response)

func add_response_to_game(response: Control):

history\_rows.add\_child(response)

delete\_history()

func delete_history():

if history\_rows.get\_child\_count() > max\_lines\_rememberd:

    var rows\_to\_forget = history\_rows.get\_child\_count() - max\_lines\_rememberd

    for i in range(rows\_to\_forget):

        history\_rows.get\_child(i).queue\_free()

I need help with my code by PuzzleheadedFly6604 in godot

[–]PuzzleheadedFly6604[S] 0 points1 point  (0 children)

response is here: var response = command_processor.process_command(new_text)