HOME | DD

KupoGames — EBF5: Equip Code

Published: 2017-01-16 11:18:51 +0000 UTC; Views: 2576; Favourites: 32; Downloads: 5
Redirect to original
Description DeviantArt doesn't have a category for code, heh.

I’m entering all of the equipment data, so I thought I’d share a bit of the process. Here’s an example of the code for one item of equipment. It’s quite verbose but I think it’s reasonably readable this way.

I think I’m coming up with more interesting effects for equips now, and even if they’re not balanced, they will hopefully be fun to try out just for the different effects. Also I’m back to the EBF3 style of upgrades: you don’t know what specials equipment will have until you upgrade it, so it’s a secret again!

The equipment that’s returning from previous games isn’t being changed much stat-wise, but many of them will have slightly different specials this time.

Related content
Comments: 28

GrandAngel71 [2017-03-08 22:57:14 +0000 UTC]

Aaaaaah, the glory, complicatedness, and down right frustrating magic of Coding. Let's just hope you won't spend 30 or something minutes trying to find that one error that's causing something to not work.

👍: 0 ⏩: 0

k-armaa [2017-01-27 17:50:03 +0000 UTC]

this looks so complicated but so easy at the same time

👍: 0 ⏩: 0

DarkStorm-7 [2017-01-20 19:09:21 +0000 UTC]

Wich game engine did you use ?

👍: 0 ⏩: 1

KupoGames In reply to DarkStorm-7 [2017-01-21 06:52:16 +0000 UTC]

Flash

👍: 0 ⏩: 1

DarkStorm-7 In reply to KupoGames [2017-01-22 17:05:06 +0000 UTC]

Fl... Flash ?! OMG, what a courageous man 

Without kidding, i had to do a flash game for school last year, and it was painful.  

Respect !  

👍: 0 ⏩: 0

AkuzukiDaichi [2017-01-19 05:00:22 +0000 UTC]

WTF??
This is so...UNBELIVEABLE!!!

👍: 0 ⏩: 0

DarkGrievous7945 [2017-01-17 05:00:13 +0000 UTC]

That's an interesting way to instantiate an object. I suppose it makes sense for what you're doing, but have you considered loading from a JSON file? Or is that actually not possible in this particular case?

Well, have fun with that hard-coding!

👍: 0 ⏩: 0

weatherly23 [2017-01-17 03:40:25 +0000 UTC]

At first glance I thought this was code "code", but looking closer, it's perfectly understandable even to someone who doesn't read computer code.
I guess outside the values themselves this is the general equipment code. Simple to modify for every piece. (Unless there's more behind the scenes)

👍: 0 ⏩: 0

Rook-pawn [2017-01-17 02:58:15 +0000 UTC]

I kind of get what's going on... I just don't know the syntax so I can't tell the language. 

👍: 0 ⏩: 0

cyrad [2017-01-17 02:53:50 +0000 UTC]

Good ol' defining objects with a script declaration rather than having to parse a file.

👍: 0 ⏩: 0

ChaosDemon2 [2017-01-16 22:38:11 +0000 UTC]

How lucky! I was just in time to catch the news!

The accelerator is getting time magic? Awesome.

But life is more than a series of 1s and 0s bro........You know that right?

I made a number 2 just for you!

No but seriously, how many upgrades are we talking? 1, 3, 10'000?

👍: 0 ⏩: 1

nonamegivenatall In reply to ChaosDemon2 [2017-01-17 17:13:13 +0000 UTC]

Judging from the numbers, weapons and armour are going to have 5 levels, as usual.

👍: 0 ⏩: 0

DarkPaladin44 [2017-01-16 20:20:30 +0000 UTC]

thank you for sharing a part of your process with us

👍: 0 ⏩: 0

Kilherday [2017-01-16 18:11:33 +0000 UTC]

*thenking*
wich code is this :3?
looking from it seems C++ (tbh i never used C++ soo i rlly dont know T_T, i work with VB)

👍: 0 ⏩: 0

bigattck [2017-01-16 18:04:00 +0000 UTC]

if only this was easy on C#   

👍: 0 ⏩: 1

Nedreow In reply to bigattck [2017-01-17 08:01:25 +0000 UTC]

It is, if you have already done it twice and have a whole bunch of objects to hide all the complex code-work.

👍: 0 ⏩: 0

User1997 [2017-01-16 17:53:46 +0000 UTC]

The insight into coding it gives... it's invaluable for me, thanks.

(I only learn good from experience.)

👍: 0 ⏩: 0

ebflover777 [2017-01-16 16:35:58 +0000 UTC]

This makes coding look a bit more understandable, thank you.

👍: 0 ⏩: 0

Metalbutcher [2017-01-16 16:20:05 +0000 UTC]

Wow very interesting

👍: 0 ⏩: 0

persistencia4everCL [2017-01-16 13:59:18 +0000 UTC]

I don't understand a shit :3

👍: 0 ⏩: 0

Hypraman [2017-01-16 12:41:59 +0000 UTC]

So if the weapons/armor no long get their very unique special at level one... a what level does this gun get it? Where is it in the code? Does this specific gun have it's unique 'slow down' and 'speed up' auto cast at level one???

👍: 0 ⏩: 1

KupoGames In reply to Hypraman [2017-01-16 13:00:45 +0000 UTC]

The list of specials corresponds to each level.

👍: 0 ⏩: 1

Hypraman In reply to KupoGames [2017-01-16 13:07:06 +0000 UTC]

So level 1: slow down auto-cast only, 1/3 chances
Level 2: null
level 3 : speed up auto-cast added, 2/3 chances
Level 4: null
level 5 : Good luck auto-cast on self added, 1/2 chances for 2 turn, for an average of having the effect about every turn.

?? understanding it well?

👍: 0 ⏩: 0

testabuddy05 [2017-01-16 11:43:50 +0000 UTC]

cool! and i knew this is how gaming programmers always did it to change the sprites and the colours of the HP and MP or whatever and the ya know you get what i mean

👍: 0 ⏩: 0

jonikari [2017-01-16 11:29:26 +0000 UTC]

Upon close inspection I can discern this is not javascript.

👍: 0 ⏩: 1

c0b3rmst In reply to jonikari [2017-01-16 12:21:01 +0000 UTC]

Same here. It looks like some kind of simplified Java

👍: 0 ⏩: 1

Noobmister In reply to c0b3rmst [2017-01-16 15:13:09 +0000 UTC]

if he's doing it in Flash, it's probably Action Script

👍: 0 ⏩: 1

IcyDragon200 In reply to Noobmister [2017-01-18 15:19:26 +0000 UTC]

It could be Haxe, judging on the type declaration.

Now back to lurking...

👍: 0 ⏩: 0