Ask coding questions

← Back to all posts
Simple ways to repeat?
Luke25 (119)

https://repl.it/@Luke25/Text-Based-RPG

So basically, I was working on this text-based RPG for a while until I just got tired of the tedious print commands. Anyone have ideas of what to do to make this less tedious.

Wooossh

Comments
hotnewtop
zog1 (16)

Make a function that prints the argument value or smth.

kaldisberzins (348)

Make some standard variables with strings in them with generic texts that you have to use again and agan. Then just use the variable instead.