This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Uplink1209's profile picture

Problem with my Program/Game plz help

Started by Uplink1209, 30 November 2015 - 07:52 AM
Uplink1209 #1
Posted 30 November 2015 - 08:52 AM
Hello first time here and I dont usually ask questions unless I really don't know whats going on so
Heres a link to the programs code (for now) pastebin.com/5efhQk2P
The problem is that when i type "Fight"
The damage randomizer works but the health still says 100
This is also the same for the enemy attack
IDK whats going on.
Any help?
Lupus590 #2
Posted 30 November 2015 - 10:48 AM
You only need to use local once, when you use local again you are making a new variable
Uplink1209 #3
Posted 01 December 2015 - 05:16 AM
Thanks, it worked.