Action RPG Framework

by Forum_account
Action RPG Framework
A framework for developing action RPGs.
well that fix the majority of them.
loading action-rpg-framework.dme
loading demo\interface.dmf
C:\Users\Mr.Aol\Documents\BYOND\lib\forum_account\pixelmovement\keyboard.dm:41:error: key_down: duplicate definition
C:\Users\Mr.Aol\Documents\BYOND\lib\forum_account\keyboard\keyboard.dm:21:error: key_down: previous definition
C:\Users\Mr.Aol\Documents\BYOND\lib\forum_account\pixelmovement\keyboard.dm:48:error: key_up: duplicate definition
C:\Users\Mr.Aol\Documents\BYOND\lib\forum_account\keyboard\keyboard.dm:20:error: key_up: previous definition
enemy-ai.dm:75:error: moved: undefined var
enemy-ai.dm:113:error: moved: undefined var
enemy-ai.dm:114:error: moved: undefined var
hud-info.dm:49:error: moved: undefined var
player-overlays.dm:66:error: moved: undefined var
demo\mobs.dm:85:error: camera.pixel_x: undefined var
demo\npcs.dm:37:error: moved_to: undefined proc
enemy-ai.dm:19:error: tick_count: undefined var
enemy-ai.dm:16:error: movement: undefined proc
demo\abilities.dm:168:error: user.distance_to: undefined proc
C:\Users\Mr.Aol\Documents\BYOND\lib\forum_account\pixelmovement\keyboard.dm:110:error: set_macros: duplicate definition
C:\Users\Mr.Aol\Documents\BYOND\lib\forum_account\keyboard\keyboard.dm:194:error: set_macros: previous definition
just delete all the libraries and download ACTION RPG FRAMEWORK again because it appears that you got origional keyboard library and copied its file into Pixel movement aswell.
A problem I was having was assigning classes with different speeds, icon states, etc. I'm new to DM and I'm hopping over from C#. I would probably uses a case statement for this in C# but what exactly am I suppose to do in DM?

mob
icon = 'mobs.dmi'
base_state = "human"

pwidth = 16
pheight = 16
pixel_x = -8

health = 20
max_health = 20

mana = 8
max_mana = 8

var
class = ""
base_speed = 4
power = 2
speed = 5
mind = 5
defense = 2
resistance = 4

tmp/slowed = 0

tmp/Overlay/weapon
tmp/Overlay/armor

description(full_description = 0)
if(full_description)
return "[name]\nLevel [level] [class]"
else
return "Level [level] [class]"
I mean switch statement.
In response to The Monster Atlas
The Monster Atlas wrote:
A problem I was having was assigning classes with different speeds, icon states, etc. I'm new to DM and I'm hopping over from C#. I would probably uses a case statement for this in C# but what exactly am I suppose to do in DM?

You can change the mob's movement speed and icon after they select their character class. For example:

mob
new_character()
class = prompt("What character class would you like to be?", "Knight", "Ranger", "Mage")

if(class == "Knight")
base_speed = 4
icon = 'knight.dmi'
else if(class == "Ranger")
base_speed = 5
icon = 'ranger.dmi'
else if(class == "Mage")
base_speed = 4
icon = 'mage.dmi'
............I'm such an idiot....

The problem was that I was using =...instead of ==...I swear to god I'm going to anhero right now.

Cannot convert integer to boolean is generally what I would get if I tried to use a single = sign in an if statement. Thanks Forum_Account...I need to get some sleep !____!
Whenever I try to add that code into the source it continues to tell me inconsistent indentation, but the indentations aren't the problem and when I "fix them" according to "DM" standards, it gives me a giant list of errors.


...Sorry Forum_Account :'[
It seems no matter what way I try to implement multiple classes, the items break as well as the base stats.

demo\enemies.dm:76:error: base_speed: undefined var
demo\enemies.dm:107:error: base_speed: undefined var
demo\npcs.dm:15:error: base_speed: undefined var
demo\npcs.dm:66:error: base_speed: undefined var
demo\npcs.dm:71:error: power: undefined var
demo\npcs.dm:72:error: speed: undefined var
demo\npcs.dm:73:error: defense: undefined var
demo\conditions.dm:37:error: target.slowed: undefined var
demo\conditions.dm:40:error: target.slowed: undefined var
demo\abilities.dm:45:error: user.power: undefined var
demo\abilities.dm:112:error: user.power: undefined var
demo\enemies.dm:32:error: user.power: undefined var
demo\abilities.dm:193:error: owner.speed: undefined var
demo\combat.dm:22:error: target.resistance: undefined var
demo\combat.dm:27:error: attacker.mind: undefined var
demo\combat.dm:34:error: target.resistance: undefined var
demo\combat.dm:48:error: target.speed: undefined var
demo\combat.dm:53:error: attacker.speed: undefined var
demo\combat.dm:59:error: target.defense: undefined var
demo\items.dm:47:error: m.power: undefined var
demo\items.dm:51:error: m.power: undefined var
demo\items.dm:62:error: m.power: undefined var
demo\items.dm:63:error: m.speed: undefined var
demo\items.dm:66:error: m.power: undefined var
demo\items.dm:67:error: m.speed: undefined var
demo\items.dm:82:error: m.defense: undefined var
demo\items.dm:86:error: m.defense: undefined var
demo\items.dm:101:error: m.defense: undefined var
demo\items.dm:105:error: m.defense: undefined var

This is of course adding something simple like


mob/Charmander
icon = 'mobs.dmi'
icon_state = 'human'
It looks like you're missing the mobs.dm file in the demo folder. Male sure its included because that's where those stats are defined.
In response to Forum_account
Forum_account wrote:
It looks like you're missing the mobs.dm file in the demo folder. Male sure its included because that's where those stats are defined.

It is :'[
If its included, did you make any changes to it?
In response to Forum_account
Forum_account wrote:
If its included, did you make any changes to it?

Even when reverted to the original code, it still has the errors.
Greatest thing I've come across in my whole BYOND career. Thanks for your time and effort into creating this!

Also, I would like to tell you that the "Find My Brother" quest is already completed the moment you get the Quest.

Are you not having any problems with it Forum_account? o___O
It's working smoothly, Atlas
Maybe I'm just retarded :/
This is such an amazing resource, and I hope that more people will make use of it. I'm going to be using the framework for this game: http://www.byond.com/games/WritingANewOne/LunarisFabula
So far, this is the best resource I've ever got my hands on!
It does 90% of the things needed to be done. Saved me a lot of time and effort! Thank you for this framework!
This is really nice. It'll help me out tons.
Page: 1 2 3 4 5