Action RPG Framework

by Forum_account
Action RPG Framework
A framework for developing action RPGs.
Oddly enough, Player Markets are something that are incredibly easy to install in a game, but used so little. They provide a framework for a real-working in-game economy. In larger games, these things work extraordinarily similar to a Stock Market. The fun comes in the fact that you can make a fair profit.
m is just src typecasted to a movable atom so it shouldn't be null. Under most circumstances it shouldn't be possible to call damage_number() if src was null - how exactly are you calling damage_number?.

number_obj comes from the map_label() proc. Are you sure you copied the code exactly as it was? If you missed the last line you'd miss the return statement which could explain why number_obj is null.
In response to Toddab503
There are a lot of features that'd work well as separate demos or libraries. Not everything has to be part of the framework and I'm hesitant to start getting into that area - once I do, where does it stop? I can add some features to the framework to make it easier to create an auction house and mailboxes (ex: a prompt() type of proc that asks the user to select an item from their inventory). It's a pretty safe bet that an action RPG will have combat, enemies, and items. When you start to get into these kinds of features, these are things that maybe 5-10% of games will have. If I do add them, it'll be after I've added the features that 20-50% of games will use.
Cloud Magic wrote:
1) ...

The numbers are stationary for a period of time, then they move 10 pixels up (at one pixel per tick). The amount of time they're stationary for is a parameter of the damage_number() proc (the default value is 15). The movement is hard-coded to be 10 pixels. If you want to change how they move you'll have to change the proc itself.

2) ...

damage_number uses spawn() and sleep() to delete the number at a later time. When you delete a mob, all procs that belong to it stop running which causes the damage_number proc to stop before it gets to the point where it deletes the numbers. To fix this you can make the proc a global one so it doesn't belong to any object:

proc
__damage_number(atom/a, ...)
// make the damage number

atom
proc
damage_number(number, ...)
__damage_number(src, number, ...)
In response to Forum_account
In that case, I wouldn't worry about it too much then. I'll draft something up and leave you to the more important sections. I feel the need to publish something anyways. I don't want to feel as though I've wasted my membership. :)
@F_A: Ah, well that's very true and understandable.

@:Solomn: That's a great attitude to have about it. I hope there are others with the same attitude, it could help out people around here a lot in the long run.
I'd love to see libraries and demos specifically made to work with this framework. That's how BYOND will become easy to use. There's no easy way to pull together arbitrary resources into a single game, but if each demo/library is built for this framework it's possible to make things that are very easy to use.
My goal is to write it as basic and simple as possible. The only things it should handle is simply the data. What the player does with that data is their prerogative.
This engine seems great, I loaded it up just now. Very smooth and lag free(I have not been to BYOND since the pixel movement was added). I returned a few days ago and am brushing up on my coding skills again after a 6 year hiatus :D. This engine would be perfect for me to use for the game that has been floating around in my head a while(dungeon crawler). Thanks for the great resource Forum_Account!

Also I support Solomn in making a Auction house feature :), regardless if that happens or not I would make one but it saves time.
In response to MaGicBush
MaGicBush wrote:
This engine seems great, I loaded it up just now. Very smooth and lag free(I have not been to BYOND since the pixel movement was added). I returned a few days ago and am brushing up on my coding skills again after a 6 year hiatus :D. This engine would be perfect for me to use for the game that has been floating around in my head a while(dungeon crawler). Thanks for the great resource Forum_Account!

Thanks, that's always good to hear! =)

If you've got any questions about how to use it or how to create something with it, just post on its forum: http://www.byond.com/forum/Forum_account/ActionRpgFramework

Also I support Solomn in making a Auction house feature :), regardless if that happens or not I would make one but it saves time.

I agree that it'd be a good feature, it just doesn't have to be part of the framework. If there was a standalone auction house library you could plug it into this game with no problem.
In response to Forum_account
Forum_account wrote:
MaGicBush wrote:
This engine seems great, I loaded it up just now. Very smooth and lag free(I have not been to BYOND since the pixel movement was added). I returned a few days ago and am brushing up on my coding skills again after a 6 year hiatus :D. This engine would be perfect for me to use for the game that has been floating around in my head a while(dungeon crawler). Thanks for the great resource Forum_Account!

Thanks, that's always good to hear! =)

If you've got any questions about how to use it or how to create something with it, just post on its forum: http://www.byond.com/forum/Forum_account/ActionRpgFramework

Also I support Solomn in making a Auction house feature :), regardless if that happens or not I would make one but it saves time.

I agree that it'd be a good feature, it just doesn't have to be part of the framework. If there was a standalone auction house library you could plug it into this game with no problem.

Thanks, and yea I agree it should be a stand-alone addition.
I've already started development on it with a few... interesting icons. Just to add some fun...
I am getting the following compile error:
medals.dm:45:error: client.medals: undefined var
medals.dm:46:error: client.medals: undefined var
medals.dm:53:error: client.AddMedal: undefined proc
medals.dm:78:error: client.GetMedals: undefined proc
In response to Jmurph
Jmurph wrote:
I am getting the following compile error:
> medals.dm:45:error: client.medals: undefined var
> medals.dm:46:error: client.medals: undefined var
> medals.dm:53:error: client.AddMedal: undefined proc
> medals.dm:78:error: client.GetMedals: undefined proc
>


You need the Hub library. It should be downloaded automatically, but often it isn't (no idea why):

http://www.byond.com/developer/Forum_account/Hub
Huh, even stranger because I could have sworn I already had that installed!
I think it'll automatically download the latest version if you don't have the library at all, but if you have an old version it won't automatically update it. If you did have the latest version then who knows, maybe it just wasn't getting included properly.
Page: 1 2