Jump to content


Zoroark173's Content

There have been 22 items by Zoroark173 (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#77639 Zoroark and Co.

Posted by Zoroark173 on 20 January 2013 - 02:32 PM in Programs

View PostremiX, on 25 December 2012 - 01:17 AM, said:

For when you get a random monster, these lines can be changed into two simple lines with a table:
var = math.random(1,6)
if var==1 then
  monster = "Goblin"
elseif var==2 then
  monster = "Giant Spider"
elseif var==3 then
  monster = "Dragon Hatchling"  
elseif var==4 then
  monster = "Possessed Santa Clause"
elseif var==5 then
  monster = "Zombie"
elseif var==6 then
  monster = "Skeleton"
end
to this:
t_monsters = {"Goblin", "Giant Spider", "Dragon Hatchling", "Possessed Santa Clause", "Zombie", "Skeleton"}
monster = t_monsters[math.random(1, #t_monsters)]
Thanks RemiX, but I like the way I have it, because it makes it super easy for someone to change it up, and implement their own monsters, without getting a bit confused, especially novice coders.



#67764 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 02 January 2013 - 03:11 PM in General

Hey Jay, this might sound a bit outrageous, but maybe you could have the person who hacked NDF-OS help you with the security of NDF-UI! Since the person was "Like Hitler", and only trying to help you, by pointing something out, I'm sure that if you guys had a serious Skype talk, you guys could become friends, and then use her skills to help you make NDF-UI more secure!



#64188 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 25 December 2012 - 03:28 PM in General

So NDFJay, is my current version of SwordQuest good to be in NDF-OS now?



#63980 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 25 December 2012 - 12:34 AM in General

View PostTheOriginalBIT, on 25 December 2012 - 12:13 AM, said:

View PostZoroark173, on 24 December 2012 - 11:31 PM, said:

The main thing that I like [...] Goto features.

NO! Just NO! No programmer should ever like goto, and when used outside of assembly language should be shot and brought back to be eaten by a velociraptor! Sorry if that sounds harsh but goto is horrible thing to use in a higher level language, if you want to jump somewhere to do something, USE functions/procedures/methods or whatever its called in the language your using.
But it makes making RPG stuff soooooo easyyyyyyy
example: (in TI-BASIC):
Lbl 1
Disp "TROLL LOOP"
Goto 1
This will create an infinite loop on your calculator that says "TROLL LOOP"! Or, you can use it for more powerful things, like for example, if it was in Lua, I would plop a Label at the beginning of where the main code for the battle started in my game (where you could enter which command you wanted to use), and a Goto at the end of every option, so that after they did an option, they could just go straight back to the entering their next choice. It just makes life so much easier. Especially when you are programming on a calculator.



#63977 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 25 December 2012 - 12:27 AM in General

Hey, I just finished updating my game! Fixed a few bugs, and added a little bit more fun and randomization into the game with Scenarios!
http://www.computerc...zoroark-and-co/
The pastebin ID is dpxaV7s9

BTW, I had to code parts of this outside of CC (In Notepad++) Because the editor for the OS would never save (it would always say Error saving),mand then it would delete random sections of my code ._.



#63976 Zoroark and Co.

Posted by Zoroark173 on 25 December 2012 - 12:24 AM in Programs

Version 1.1 is out! Read the changelog for info (Also, a secret Christmas Easter Egg :3 )



#63966 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 24 December 2012 - 11:31 PM in General

View PostNDFJay, on 24 December 2012 - 11:22 PM, said:

View PostZoroark173, on 24 December 2012 - 11:17 PM, said:

--snip--

I know what you mean, programming pre-defined functions are a lot easier that programming variable ones lol
The main thing that I like though about TI-BASIC (The Calculator programming language) is the Label and Goto features. Those are so handy ._. They let you just skip around parts of your code.



#63956 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 24 December 2012 - 11:17 PM in General

View PostNDFJay, on 24 December 2012 - 11:13 PM, said:

View PostZoroark173, on 24 December 2012 - 11:10 PM, said:

--snip--

when i was playing it i was attacking the "bad guy" untill his health was -63 and mine was -55 thats a pretty big bug and when i use the move command nothing happened
Oh crap. i completely forgot to check for wins/game overs ._. And move does do something, it just doesn't tell you (Adding that in right now)
There is a lot more bugs than I realized... Programming my calculator is so much easier ._.



#63954 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 24 December 2012 - 11:10 PM in General

View PostNDFJay, on 24 December 2012 - 10:58 PM, said:

View PostZoroark173, on 24 December 2012 - 10:53 PM, said:

Also, 1 last thing! Do you think that you could have my game SwordQuest come bundled with this? It is a little RPG, nothing to exciting, but a nice little game (besides the car one) could be fun!
Heres the link to my thread on the game: http://www.computerc...zoroark-and-co/
Also I would prefer if the pic was something like this: Attachment SwordQuestpic.png

EDIT: I intensely dislike how the pixels on the Paint program are not all the same size squares. >.> Makes making pictures that should look nice difficult :angry:

you got any screenshots to go with the forum topic?

edit-- as your game is at the moment its too buggy to include and still needs a lot of work, once the bugs have been removed and it has more of an element to it ill be happy to include it but as it is right now i cant, sorry
May you mind telling me what bugs I have in it? The only one I can think of is that you have to ctrl+t to get out of it, but that's not really a bug...



#63950 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 24 December 2012 - 10:53 PM in General

Also, 1 last thing! Do you think that you could have my game SwordQuest come bundled with this? It is a little RPG, nothing to exciting, but a nice little game (besides the car one) could be fun!
Heres the link to my thread on the game: http://www.computerc...zoroark-and-co/
Also I would prefer if the pic was something like this: Attached Image: SwordQuestpic.png

EDIT: I intensely dislike how the pixels on the Paint program are not all the same size squares. >.> Makes making pictures that should look nice difficult :angry:



#63947 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 24 December 2012 - 10:27 PM in General

View PostNDFJay, on 24 December 2012 - 10:24 PM, said:

View PostZoroark173, on 24 December 2012 - 10:14 PM, said:

Hello. Two quick things! 1- In the next version, please add a CMD option in the [Begin] menu, so that we can do stuff like getting files from pastebin, and creating new files. Also, Using the Paint seems to be broken. Whenever I try and save, it crashes and deletes the pic :P

code for CMD is already in place for the next version and you can already create new files by using the file manager if you right click on the left hand side of the program

as for paint not working thats a new one, its not developed by me so you will need to alert nitrogenfingers about it but paint seems to work fine for me and everyone else thats used the OS

I'm also adding in my own pastebin get section that will add the downloaded filed directly to the documents folder, that will be in the next version
Ohh, so that's how you make a new file. I'm dumb >.>
And also, maybe the saving problem is just it running out of memory or something. IDK :P
Also, you should add the ability for us to add our own Icons to the home-screen!
EDIT: Bug: When you have Icons hidden, on right-click of the home screen, it says Properties instead of Feedback, but brings you to the Feedback page.



#63943 NDF-OS || Terminated || NDF-UI Coming Soon

Posted by Zoroark173 on 24 December 2012 - 10:14 PM in General

Hello. Two quick things! 1- In the next version, please add a CMD option in the [Begin] menu, so that we can do stuff like getting files from pastebin, and creating new files. Also, Using the Paint seems to be broken. Whenever I try and save, it crashes and deletes the pic :P



#63932 Firewolf Website Browser 2.5 - Brand New Internals (again)!

Posted by Zoroark173 on 24 December 2012 - 09:20 PM in Programs

Hello, quick noob question- How exactly do I make a web page >.> I made a website by going to rdnt://server, clicked new server, made one, but then when I clicked Edit, I had no idea on what to do from there. Almost everything I try to do in there says "Program not Allowed!"



#41537 [Error] until expected to close repeat?

Posted by Zoroark173 on 18 October 2012 - 06:28 AM in Ask a Pro

Thanks, but I would like to keep it how it is. If you would like the full program to play, I just posted it!
http://www.computerc...zoroark-and-co/



#41535 Zoroark and Co.

Posted by Zoroark173 on 18 October 2012 - 06:23 AM in Programs

Hello everybody! Here is Zoroark173 with my first released program! I plan on making a multitude of programs, but I shall start you all of with a game that I have made! Note, this is the very first version of the game, so there are many features in it that might be missing that I will add over time!

Installation: To install any of my games, open your computer in game and type in:
pastebin get {pastebin id} {program name}
This will allow you to use pastebin to get any of my programs automagically uploaded to your computer!
Or you can do it the manual wat buy making the .text file in your computers file in your worlds save folder...

SwordQuest v1.1!
In the game SwordQuest, you travel across the land, fighting deadly monsters while trying to stay alive!
Pastebin ID: dpxaV7s9

Manual code:
Spoiler

Changelog:
Spoiler

Note:
You may use my program on your own world or a server, but please do not claim the program as your own, include it in an OS, or use it to make money (eg. adf.ly) without my permission.
People with permssion so far: @NDFJay - in the NDF-OS



#41526 [Error] until expected to close repeat?

Posted by Zoroark173 on 18 October 2012 - 05:43 AM in Ask a Pro

View PostsIdEkIcK_, on 18 October 2012 - 05:21 AM, said:

In the battle code
if startmenu == "1" then
repeat
  clean()
  creature()
  print("A "..monster.." is attacking!")
  print("Move, Attack, or Potion?")
  battle = string.lower(read())
  if battle == "potion" then
   var2 = 10
   print("Heal Complete!")
   print("HP: "..var2)
   print(monster.." attacks!")
   var2 = var2-1
   print("HP: "..var2)
   sleep(3)
  elseif battle == "attack" then
   var3 = var3-1
   print("Did 1 damage to "..monster)
   var2 = var2-1
   print(monster.." did 1 damage to you.")
   sleep(3)
  elseif battle == "move" then
   clean()
   creature()
   i = i+1
  else
   print("Unknown action.")
  end
until var4 == 100
end

You need sleep(x) timers or else it will instantly reset.

I made the input into lower case so then it will not be case sensitive.
Thanks, but no I have a problem where if I type in the command, it will work fine, but then it just restart the game, but I think I know how to fix it, thanks!
EDIT- Yup, just had to move the start of the repeat down a few lines! Thanks!

View PostChunLing, on 18 October 2012 - 05:29 AM, said:

You should really try using indexed tables rather than long lists of elseif statements.

Note that sIdEkIcK_ added an else statement, so that you will know if you failed to match any of your elseif conditions. This is probably what was happening before. Two questions, what is 'i' supposed to do and how does 'var4' reach 400?

I have no clue what i is, I just had it put there when trying to fix the problem, and var4 never reaches 400, so the game will just keep going on.
And how do I use an indexed table?



#41509 [Error] until expected to close repeat?

Posted by Zoroark173 on 18 October 2012 - 04:57 AM in Ask a Pro

View PostLyqyd, on 18 October 2012 - 12:02 AM, said:

Please paste the code you're currently using in its entirety. I can't see anything glaringly wrong in the snippet I posted above, so there may be slight differences in the implementation causing the problem.
--testproj
--Made by Zoroark173
local var = 0
local var2 = 10
local var3 = 7
local var4 = 1
local i = 1
function clean()
term.clear()
term.setCursorPos(1,1)
end
function creature()
var = math.random(1,6)
if var==1 then
  monster = "Goblin"
elseif var==2 then
  monster = "Giant Spider"
elseif var==3 then
  monster = "Dragon Hatchling" 
elseif var==4 then
  monster = "Evil Guy"
elseif var==5 then
  monster = "Zombie"
elseif var==6 then
  monster = "Skeleton"
end
end
--Declaring variables and functions
--------------------------------------
--Bulk of the program
clean()
print("Hello, welcome to SwordQuest!")
print("Type 1 to start the game!")
print("Or 2 to see the Help section!")
startmenu = read()
  if startmenu == "2" then
   print("Type 1 at the main screen to start the game")
   print("Commands avalible in-game are Move, Attack, and Potion")
   print("Move brings you to a new monster.")
   print("Attack attacks the monster.")
   print("Potion uses a healing potion.")
   print("Contact Zoroark173 for more info!")
   sleep(7)
   print("Please restart me")
  end
--Help section
--------------------------------
--In battle
if startmenu == "1" then
    repeat
	    clean()
	    creature()
	    print("A "..monster.." is attacking!")
	    print("Move, Attack, or Potion?")
	    battle = read()
	    if battle == "Potion" then
		    var2 = 10
		    print("Heal Complete!")
		    print("HP: "..var2)
		    print(monster.." attacks!")
		    var2 = var2-1
		    print("HP: "..var2)
	    elseif battle == "Attack" then
		    var3 = var3-1
		    print("Did 1 damage to "..monster)
		    var2 = var2-1
		    print(monster.." did 1 damage to you.")
	    elseif battle == "Move" then
		    clean()
		    creature()
		    i = i+1
	    end
    until var4 == 100
end



#41460 [Error] until expected to close repeat?

Posted by Zoroark173 on 17 October 2012 - 11:59 PM in Ask a Pro

View PostLyqyd, on 11 October 2012 - 02:33 AM, said:

View PostZoroark173, on 11 October 2012 - 02:15 AM, said:

Thanks, but isn't that basically what I had before?

No. I removed the incorrectly placed ends. If the rest of the code is correct, it should run fine.
Hi! Whenever i try to run this piece, no matter what I do, it does the Move option, even when I type in Attack or Potion...
Note- I have tried this too, but it wouldn't work...
--testproj
--Made by Zoroark173
local creaturevar = 0
local playerhp = 10
local monhp = 7
local var4 = 1
local i = 1
function clean()
term.clear()
term.setCursorPos(1,1)
end
function creature()
creaturevar = math.random(1,6)
if creaturevar==1 then
  monster = "Goblin"
elseif creaturevar==2 then
  monster = "Giant Spider"
elseif creaturevar==3 then
  monster = "Dragon Hatchling" 
elseif creaturevar==4 then
  monster = "Evil Guy"
elseif creaturevar==5 then
  monster = "Zombie"
elseif creaturevar==6 then
  monster = "Skeleton"
end
end
function attack()
monhp = monhp-1
playerhp = playerhp-1
print(monster.."'s HP is: "..monhp)
sleep(1)
print(monster.." Attacked you! HP: "..playerhp)
end
function potion()
playerhp = 10
print("You used a potion to go back to full health!")
playerhp = playerhp-1
print(monster.."Attacked you! HP: "..playerhp)
end
function move()
clean()
creature()
end
function game()
move()
print("A "..monster.." is attacking you!")
print("What do you do?")
battle = read()
if battle == "Attack" then
	  attack()
elseif battle == "Move" then
	  move()
elseif battle == "Potion" then
	  potion()
end
--Declaring variables and functions
--------------------------------------
--Bulk of the program
clean()
print("Hello, welcome to SwordQuest!")
print("Type 1 to start the game!")
print("Or 2 to see the Help section!")
startmenu = read()
  if startmenu == "2" then
   print("Type 1 at the main screen to start the game")
   print("Commands avalible in-game are Move, Attack, and Potion")
   print("Move brings you to a new monster.")
   print("Attack attacks the monster.")
   print("Potion uses a healing potion.")
   print("Contact Zoroark173 for more info!")
   sleep(7)
   print("Please restart me")
  end
 
--Help section
--------------------------------
--In battle
 
if startmenu == "1" then
   repeat
	    game()
    until var4 == 100
end



#38930 [Error] until expected to close repeat?

Posted by Zoroark173 on 11 October 2012 - 02:15 AM in Ask a Pro

Thanks, but isn't that basically what I had before?



#38879 [Error] until expected to close repeat?

Posted by Zoroark173 on 10 October 2012 - 11:22 PM in Ask a Pro

But now it says that I need an end to close if at line 63



#38872 [Error] until expected to close repeat?

Posted by Zoroark173 on 10 October 2012 - 11:16 PM in Ask a Pro

Hello everybody, I am trying to make a program, but I keep getting an error. It says that I need a repeat to close the until, but I already have an until at the end of my program, so this really makes no sense...

I am still new to Computercraft programming, so if this code is extremely long for what it should be doing, or it has terrible formatting, I am sorry.

--testproj
--Made by Zoroark173

local var = 0
local var2 = 10
local var3 = 7
local var4 = 1
local i = 1

function clean()
term.clear()
term.setCursorPos(1,1)
end

function creature()
var = math.random(1,6)
if var==1 then
  monster = "Goblin"
elseif var==2 then
  monster = "Giant Spider"
elseif var==3 then
  monster = "Dragon Hatchling"  
elseif var==4 then
  monster = "Evil Guy"
elseif var==5 then
  monster = "Zombie"
elseif var==6 then
  monster = "Skeleton"
end
end

--Declaring variables and functions
--------------------------------------
--Bulk of the program

clean()
print("Hello, welcome to SwordQuest!")
print("Type 1 to start the game!")
print("Or 2 to see the Help section!")
startmenu = read()
  if startmenu == "2" then
   print("Type 1 at the main screen to start the game")
   print("Commands avalible in-game are Move, Attack, and Potion")
   print("Move brings you to a new monster.")
   print("Attack attacks the monster.")
   print("Potion uses a healing potion.")
   print("Contact Zoroark173 for more info!")
   sleep(7)
   print("Please restart me")
  end

--Help section
--------------------------------
--In battle

if startmenu == "1" then
repeat
   clean()
   creature()
   print("A "..monster.." is attacking!")
   print("Move, Attack, or Potion?")
	battle = read()
   if battle == "Potion" then
	 var2 = 10
	 print("Heal Complete!")
	 print("HP: "..var2)
	 print(monster.." attacks!")
	 var2 = var2-1
	 print("HP: "..var2)
   end
   elseif battle == "Attack" then
	 var3 = var3-1
	 print("Did 1 damage to "..monster)
	 var2 = var2-1
	 print(monster.." did 1 damage to you.")
   end
   elseif battle == "Move" then
	 clean()
	 creature()
	 i = i+1
  end
  until var4 == 100
end



#23005 [Question]Can I use one program to edit another?

Posted by Zoroark173 on 02 August 2012 - 07:17 AM in Ask a Pro

I'm not sure exactly how to explain this, and will try to be as clear as possible, and forgive me if there is a really simple answer to this that I'm not seeing, but is there any way that I can use one program to add code to another program? For example, lets say I made a small game called Shooter, where you shot aliens, and another program was an expansion pack called Levels Pack 1, that added more levels to the game, that I was on a Floppy Disk. I would put in the Floppy, and then it would go into Shooter's file, and add the info for the new levels into the end of the original games code. Something like this would be good for people who want to release expansions or updates to programs they've made very easily!