ID:267720
 
I'm trying to make an RPG but i cant define a var for the NPC's (called Dummy) HP or Def or Str or anything. it says duplicate definition cuz i have the same var for the Player. i'll give the code and its probably really bugged:
mob
var
HP
Max_HP
Str
Def
mob/Player
icon = 'Player.dmi'
var
HP = 30
Max_HP = 30
Str = 10
Def = 7
NPC
dummy
icon = 'Dummy.dmi'
var
HP = 25
Max_HP = 25
Str = 0
Def = 5
as u can probably see i tryed different things.
now the 2nd problem.
im not sure how to get my game Downloadable (so people can host themselves)
i need this since i cant really host.
It's because you have those vars defined at the beginning of the code, then you re-define them for both the player and NPC. Just take out the "var" line above the player and NPC's variable definitions, something like this:

mob
var
HP
Max_HP
Str
Def
mob/Player
icon = 'Player.dmi'
HP = 30
Max_HP = 30
Str = 10
Def = 7
NPC
dummy
icon = 'Dummy.dmi'
HP = 25
Max_HP = 25
Str = 0
Def = 5

And to upload your game onto the hub, You have to package the hubfiles in your Dream Maker ("Build" > "Package Files") then open your Dream Seeker, click the "Hub" button, and click the "Your Account" link at the top of the page. After you log in, you must select the "Your hub" link and the rest is self-explanatory.
In response to Enigmaster2002
ok...whenever i do Download it says Maximum hop count exceeded. What's up with that? SOMEONE HELP ME PLEASE! I feel pathetic not knowing how to get it downloadable.
In response to Dark Weasel
That error occurs if you have the download link pointed back to itself. I can't really explain it better, sorry.