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

Craftmon - A Pokemon Game

Started by Left4Cake, 18 November 2013 - 11:26 AM
Left4Cake #1
Posted 18 November 2013 - 12:26 PM
Craftmon - A Pokemon Game



This is a 1 player Pokemon Game. You select Mons and then you battle to try to make the opponent faint.

V4 Installer: pastebin get ibENJLpS
V3 Installer: pastebin get fEWCXscB
V2 Installer: pastebin get cmGLDVCv
V1 Download: http://www.lozengia..../1/Craftmon.zip


Making your own Mons
Spoiler-Start by copying one of the Mon a folder in /Craftmon/mon folder
-Rename it what you want your Mon to be called
-Open both /Craftmon/mon/front.nfp and /Craftmon/mon/back.nfp with paint or netPaintPro making sure to keep the same image size.
-Now edit the Stats file

temp = {
game = "Pokemon RBY",
		id = 6,
		Name = "Charizard",
		Type = "Fire",
		Type2 = "Flying",
		hp = 138,
		hpMax = 138,
		attack = 89,
		defense = 83,
		spAttack = 114,
		spDefense = 90,
		speed = 105,
		attack1 = "Slash			 ",
		attack2 = "Dragon Rage	   ",
		attack3 = "Wing Attack	   ",
		attack4 = "Flamethrower	  "
}

A few thing to know when editing.
Mons can be any type but only Actual Pokemon Types are taken to account. (plus they aren't all finished yet)
The Name has to be the same as the name of the folder.
Attacks should also be 17 character long and needs to be capitalized right but spaces don't matter. "Flamethrower ", "Flame thrower ", "Fla meth ro we r " are all the same thing.

Adding more attacks
SpoilerAll the attacks are in /Craftmon/attack

I recommend (if you have v4 or above) that you use Cattack to make your base and then edit that. Be carefull if an attack of that name already exist it will override it.


attacktype = "Dark"
doseDmg = true
attackform = "phys"
Power = 60
effect = "heal"
effectvalue = 10
baseAccuracy = 100

-attacktype: This is what type the attack is such as Fire, Normal, Rock, ect.
-doseDmg: If true then this attack will do damage
-attackform: This can be three values
–1: "phys" will use attack and defense stats in the attack formula
–2: "spec" will use special attack and special defense stats in the attack formula
–3: "exac" will ignore the attack formula, and just use the power for the damage.
-Power: Normally a variable for the attack formula unless attack form is exac then its the exact damage of the attack
-effect: the bonus effect of the attack
–1: "Heal" will cause the attack to heal
–2: "Buffdefence" "BuffAttack" "BuffSpeed" buff the related stat. (Note: the same thing for specials have not been added yet_
–3:"Debuffdefence" "DebuffAttack" "DebuffSpeed" lowers oppens stat.
-effect value: Either the amount of healling of the number of levels of buffness effected.

Change Log.
SpoilerV4
-Added Cattack, A cmon attack creator
-Added the full Pokemon X/Y type chart.
-Accidentally created a new type the "N/A" type.
– Normal types moves a super effective ageist N/A types
– Flying, Rock, Bug, Fire, Water, Grass, Ice, Dark, and Fairy cannot effect it.
–Hotfix:line 343 and 347

V3
-Changed the attacks to be in separate files.
V2
-Added Creeper
-Added Heathbars
-Fixed Menu Funtanitly
-Added Installer
-Changed Directory Structure
-Game now searches for Mons in folder making new Mons easier to make.
-Due to above change Mons are now listed alphabetically.

*If you Delete Mons the game will still work except for Missing no. If you remove him and you scroll past the Available Mons the game will stop functioning.

V1
-9 Pokemon
-Types
-Menus
-Basic Gui

Comming soon
-Screen shots
-More Pokemon
-More Non-Pokemon Charaters
-Guide to making custom mon
-More custom code friendly attack implication

Possibly Coming soon (may be)
-Special Contions
-Party System
-2-Player Rednet
-Move Set Customization?
Edited on 08 March 2014 - 01:56 AM
TheOddByte #2
Posted 18 November 2013 - 01:35 PM
Well first of all.. Please use a pastebin link, Not many people like to download it as a zip,
EDIT: Saw that there is coming an installer..
Second of all this looks pretty cool so far, Would suggest you actually changed the health bars depending on the health,
Do you need help with an installer?
Edited on 18 November 2013 - 12:36 PM
Left4Cake #3
Posted 18 November 2013 - 01:58 PM
Well, I do have things covered, but if you wish too I would still apreate it.
Yevano #4
Posted 18 November 2013 - 04:14 PM
Pretty neat! The UI is a tad buggy and I experienced a crash during my first battle (using Dragon Rage with a Charizard on a Blastoise, some bug with accuracy calculation iirc), but this is definitely a cool idea. Any chance of implementing some sort of overworld? (Dwarf Fortress character tiling style)
nutcase84 #5
Posted 18 November 2013 - 07:46 PM
Great start! I like what I'm seeing! Missingno.!
Left4Cake #6
Posted 18 November 2013 - 09:04 PM
While I do hope to get around to an overworld, but There are quite a few things to work on to get to that point. Like possibly 2 player over rednet.
Left4Cake #7
Posted 21 November 2013 - 08:43 PM
Bumping for my Updates

Aside from the installer the biggest thing is now its possible to add more Craftmons with out editing the games code.

Also added Creeper and fixed a few of the Pokemon move sets, and redid their stats to be based on Gen VI, Level 50, with no EVs or IVs, and neutral nature.
Symmetryc #8
Posted 01 December 2013 - 10:04 PM
Wow! Impressive!
H4X0RZ #9
Posted 02 December 2013 - 03:38 AM
Cool Idea!!
I'll start working on a pokemon lib for this (more attacks and new Pokemons), would that be okay?
Left4Cake #10
Posted 02 December 2013 - 03:06 PM
Yeah, adding Pokemon and attacks is ok. Infact I incourge it.
Left4Cake #11
Posted 27 February 2014 - 03:28 AM
Version 4 is now up. The type chart has been updated to include all Pokemon Types.

Also now includes Cattack witch will create can be used to create a new attack.
biggest yikes #12
Posted 05 March 2014 - 10:19 PM
Nice!
However, I'd like to say that on line 343 and 347, you got kinda sloppy and forgot a " on one of the table requirements.
Still, very nice work! :D/>
Edited on 05 March 2014 - 09:20 PM
Left4Cake #13
Posted 08 March 2014 - 02:52 AM
Alright did a hotfix on version 4 so it should work now, just rerun the version 4 installer.
biggest yikes #14
Posted 13 March 2014 - 05:50 PM
Alright did a hotfix on version 4 so it should work now, just rerun the version 4 installer.
Well, at least now I don't have to edit the code anymore..xD
I think it would be a cool idea that instead of it having to be chosen out of ALL of them, a random set of pokemon could be chosen out from.
Edited on 13 March 2014 - 04:51 PM
Left4Cake #15
Posted 15 March 2014 - 03:14 AM
I think it would be a cool idea that instead of it having to be chosen out of ALL of them, a random set of pokemon could be chosen out from.

I actually have plains to make the battle enginge and the Pokemon menu different programs at some point so that there can be diffrent varations on how you can select them. (and potentially an RPG)

but I really need to get a party system work out so there can be more then one-on-ones
biggest yikes #16
Posted 02 April 2014 - 10:17 PM
I think it would be a cool idea that instead of it having to be chosen out of ALL of them, a random set of pokemon could be chosen out from.

I actually have plains to make the battle enginge and the Pokemon menu different programs at some point so that there can be diffrent varations on how you can select them. (and potentially an RPG)
Good to know :)/>

but I really need to get a party system work out so there can be more then one-on-ones
Good luck!
Edited on 02 April 2014 - 08:17 PM
IPIPP #17
Posted 10 May 2014 - 08:09 PM
admitt it, you did add the N/A Type on purpose!
Left4Cake #18
Posted 11 May 2014 - 01:27 AM
admitt it, you did add the N/A Type on purpose!

It was an accident but I am keeping it in anyway, Well Assuming I find the time to work on this some more.
Agent Silence #19
Posted 14 May 2014 - 09:32 PM
Nice work!
Edited on 14 May 2014 - 07:36 PM
Geforce Fan #20
Posted 08 June 2014 - 12:32 AM
admitt it, you did add the N/A Type on purpose!

It was an accident but I am keeping it in anyway, Well Assuming I find the time to work on this some more.
lol. I get it.