Hey all! I have a future plan to make a Labyrinth with enemies in it, but I need some help figuring out the coding aspect.
The Starting Class
- Basically there will be a starting class with specific stats. I imagine it goes something like
If (uservariable) (clickvariable) (startingclassvariable1)
then (startingclassvariable1) == (startingstatsvariable)
(enemies are stat locked so those are easier)
The item equipping
- Basically equipping a potion, weapon, armor. I imagine it'd go something like:
if (uservariable) (clickvariable) (armor9)
then (messagevariable)
if (uservariable) (clickvariable) == "yes"
then (equipvariable)
else if (uservariable) (clickvariable) == "no"
then (exitmessagevariable)
(the stats would be effected of course whenever you replache a piece of equipment)
The Fighting
- This goes into RNG category. Let's say user has 6-8 damage. RNG choose whether it hits 6,7, or 8 damage. Defense, dodge, luck, etc. are also taken into consideration when attacked. Like, if dodge is either less then or equal to, or more then etc. then it goes into defense if dodge fails. If dodging fails, you take 1.5x more damage etc.
Labyrinth-wise I'm pretty good. But these above variables I could REALLY use help with. Thanks to anyone who can help :v