Hey guys,
As the title says i am 100% unsure as to where to post this as this is General Discussion I thought here maybe, idunno move it to where it belongs IF in the wrong area.
Im completely new to OHRPGCE to the point where i have to look at the program to figure out how to type it out. :/
I have a few questions.
what are OHRPGCE's restrictions, I haven't really read anywhere on what its restrictions are, Im not talking about its Graphic restrictions im talking more about its programming restrictions.
I have an Idea for a game and i need to know if its possible before i even attempt it.
My Idea is, YOU the player, Is surviving against Zombies.
Hunger, Thirst, Health, Infection are all in play.
Im aware of all the other Zombie Survival games out there, DayZ, WarZ, Project Zomboid, I am inspired by them to do this game. I am going to try and do my best to make this game, COMPLETELY different to the others.
I need to know if its possible to have Hunger/Thirst Bar that decreases over time and increases as you eat/drink as well as having it as a HUD
Also, whats the scripting Language this uses, I haven't really seen it anywhere a link to a tutorial page would be great.
If someone could answer those questions that would be amazing.
Thanks in Advance.
The Scriptitng tutorial
http://rpg.hamsterrepublic.com/ohrrpgce/Plotscripting_Tutorial
"you will need to understand the scripting to understand the limitations"
A game with the Features you are looking for
http://www.slimesalad.com/forum/viewgame.php?t=4988
it's totally possible to do the game you are imagining, but much scripting is necessary.
hope I have helped, Also, Welcome to Slime Salad, our little OHR Heaven.
"I can't buy food with glory"
http://rpg.hamsterrepublic.com/ohrrpgce/Plotscripting_Tutorial
"you will need to understand the scripting to understand the limitations"
A game with the Features you are looking for
http://www.slimesalad.com/forum/viewgame.php?t=4988
it's totally possible to do the game you are imagining, but much scripting is necessary.
hope I have helped, Also, Welcome to Slime Salad, our little OHR Heaven.
"I can't buy food with glory"
That sounds entirely doable. And I think the scripting won't even be that complicated, though I could of course be wrong. I've also wanted to do something similar for the longest time, but have been too caught up working on my own project, hehe.
Also, as misac said, welcome to Slime Salad!
Being from the third world, I reserve the right to speak in the third person.
Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Also, as misac said, welcome to Slime Salad!
Being from the third world, I reserve the right to speak in the third person.
Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Thanks BMR, I hope to stay around
In continuation of my reply to Misac Answers;
Okay that helped.
An hour later, i completed the tutorial.
Found the game okay but it didn't really help me.
Just showed me that i can do it, hopefully i dont have to do it the same way that person did it.
Im now just as lost as before...
I hate being a noob, Please don't hate me.
In continuation of my reply to Misac Answers;
Okay that helped.
An hour later, i completed the tutorial.
Found the game okay but it didn't really help me.
Just showed me that i can do it, hopefully i dont have to do it the same way that person did it.
Im now just as lost as before...
I hate being a noob, Please don't hate me.
Noob?! Release the hounds!
There should totally be a welcoming section on this forum. But yes,
we welcome thee with great prejudice and much mucilaginous merriment.
dOn'T MiNd mE! i'M jUsT CoNtAgIoUs!!!
Play Orbs CCG: http://orbsccg.com/r/4r6x
There should totally be a welcoming section on this forum. But yes,
we welcome thee with great prejudice and much mucilaginous merriment.
dOn'T MiNd mE! i'M jUsT CoNtAgIoUs!!!
Play Orbs CCG: http://orbsccg.com/r/4r6x
We don't hate you.. Well we don't ALL hate you.
I promise not to kill you for your apple.
Anyways, huds aren't that hard really, but keeping them updated means maintaining a script loop in game.
You'll want to use commands such as these:
while(condition) do(commands)
The while command checks the value of its condition, and if the value is true it runs the commands in the do block. It keeps checking the conditional and runs the do block over and over again until the conditional returns false. The conditional is usually an equality operator such as == or <>, or it is a check tag command.
load medium enemy sprite (num, palette)
Loads medium enemy sprite #num with palette palette, and returns a handle. You may omit palette, in which case the default palette for that sprite will be loaded. You must free it with free sprite when you are done.
put sprite (handle, x, y)
Moves sprite handle to position (x, y). This can only be used on sprites, use put slice in general.
The code below will display the first medium enemy sprite picture
in the upper left corner of the screen. As the game goes on the picture will change to the next medium enemy sprite picture, and the next, till it reaches the 50th one and the game ends.
I promise not to kill you for your apple.
Anyways, huds aren't that hard really, but keeping them updated means maintaining a script loop in game.
You'll want to use commands such as these:
while(condition) do(commands)
The while command checks the value of its condition, and if the value is true it runs the commands in the do block. It keeps checking the conditional and runs the do block over and over again until the conditional returns false. The conditional is usually an equality operator such as == or <>, or it is a check tag command.
load medium enemy sprite (num, palette)
Loads medium enemy sprite #num with palette palette, and returns a handle. You may omit palette, in which case the default palette for that sprite will be loaded. You must free it with free sprite when you are done.
put sprite (handle, x, y)
Moves sprite handle to position (x, y). This can only be used on sprites, use put slice in general.
The code below will display the first medium enemy sprite picture
in the upper left corner of the screen. As the game goes on the picture will change to the next medium enemy sprite picture, and the next, till it reaches the 50th one and the game ends.
Code:
plotscript,HudLoop,begin
variable (hud,loopcheck,hunger,time)
time:=300
loopcheck:=0
hunger:=0
hud:=load medium enemy sprite (num, palette)
put sprite (hud, 0,0)
#--loop begin--
while (loopcheck==0) do,begin
if (time==0) then (increment (hunger),time:=300 )
replace sprite (hud,hunger)
decrement(time)
if(hunger==50) then (loopchecker:=1)
end
#--loop end--
gameover
end
plotscript,HudLoop,begin
variable (hud,loopcheck,hunger,time)
time:=300
loopcheck:=0
hunger:=0
hud:=load medium enemy sprite (num, palette)
put sprite (hud, 0,0)
#--loop begin--
while (loopcheck==0) do,begin
if (time==0) then (increment (hunger),time:=300 )
replace sprite (hud,hunger)
decrement(time)
if(hunger==50) then (loopchecker:=1)
end
#--loop end--
gameover
end
Meowskivich wrote:
Noob?! Release the hounds!
There should totally be a welcoming section on this forum. But yes,
we welcome thee with great prejudice and much mucilaginous merriment.
There should totally be a welcoming section on this forum. But yes,
we welcome thee with great prejudice and much mucilaginous merriment.

That made me giggle, Good Work Meowskivich!
and Yes a welcoming section is 100% needed on these forums.
Just a heads up.
I ask questions, A lot of questions like all the time.
So, If i ever get to annoying with my questions do tell me to shut up and get off the forums for a couple of days.
but thanks for the uh-uhm...Warming welcome.
Spoonweaver wrote:
We don't hate you.. Well we don't ALL hate you.
I promise not to kill you for your apple.
Anyways, huds aren't that hard really, but keeping them updated means maintaining a script loop in game.
You'll want to use commands such as these:
while(condition) do(commands)
The while command checks the value of its condition, and if the value is true it runs the commands in the do block. It keeps checking the conditional and runs the do block over and over again until the conditional returns false. The conditional is usually an equality operator such as == or <>, or it is a check tag command.
load medium enemy sprite (num, palette)
Loads medium enemy sprite #num with palette palette, and returns a handle. You may omit palette, in which case the default palette for that sprite will be loaded. You must free it with free sprite when you are done.
put sprite (handle, x, y)
Moves sprite handle to position (x, y). This can only be used on sprites, use put slice in general.
The code below will display the first medium enemy sprite picture
in the upper left corner of the screen. As the game goes on the picture will change to the next medium enemy sprite picture, and the next, till it reaches the 50th one and the game ends.
I promise not to kill you for your apple.
Anyways, huds aren't that hard really, but keeping them updated means maintaining a script loop in game.
You'll want to use commands such as these:
while(condition) do(commands)
The while command checks the value of its condition, and if the value is true it runs the commands in the do block. It keeps checking the conditional and runs the do block over and over again until the conditional returns false. The conditional is usually an equality operator such as == or <>, or it is a check tag command.
load medium enemy sprite (num, palette)
Loads medium enemy sprite #num with palette palette, and returns a handle. You may omit palette, in which case the default palette for that sprite will be loaded. You must free it with free sprite when you are done.
put sprite (handle, x, y)
Moves sprite handle to position (x, y). This can only be used on sprites, use put slice in general.
The code below will display the first medium enemy sprite picture
in the upper left corner of the screen. As the game goes on the picture will change to the next medium enemy sprite picture, and the next, till it reaches the 50th one and the game ends.
Code:
plotscript,HudLoop,begin
variable (hud,loopcheck,hunger,time)
time:=300
loopcheck:=0
hunger:=0
hud:=load medium enemy sprite (num, palette)
put sprite (hud, 0,0)
#--loop begin--
while (loopcheck=0) do,begin
if (time<<0>>50) then (loopchecker:=1)
end
#--loop end--
gameover
end
plotscript,HudLoop,begin
variable (hud,loopcheck,hunger,time)
time:=300
loopcheck:=0
hunger:=0
hud:=load medium enemy sprite (num, palette)
put sprite (hud, 0,0)
#--loop begin--
while (loopcheck=0) do,begin
if (time<<0>>50) then (loopchecker:=1)
end
#--loop end--
gameover
end
Kill?!
When i try to compile/import the script it says, "= is not permitted inside a script"
:/ Uhm?
Spoonweaver's example is meant more as a template. If you are new to programming in general, I'm not sure if an HUD device is a good starting point to learn from.
There are other typos that you should be aware of if you are using this template to learn from. The variable for checking the loop is either "loopcheck", not "loopchecker", so the line near the end
(loopchecker:=1)
should read
(loopcheck:=1).
Also, I'm not sure what the if condition there is checking:
Is this a format that I'm not aware of? What does it even mean?
As written, Spoonweaver's template doesn't do much other than display a graphic and continuously check whether or not 'time' has run out (I think?). As long as 'time' has not run out, the game continues; once it runs out, the game will 'game over' itself. That said, his check for time running out makes no sense to me, so I'm just guessing that this is what is supposed to be happening.
I am Srime
There are other typos that you should be aware of if you are using this template to learn from. The variable for checking the loop is either "loopcheck", not "loopchecker", so the line near the end
(loopchecker:=1)
should read
(loopcheck:=1).
Also, I'm not sure what the if condition there is checking:
Code:
if(time<<0>>50)
Is this a format that I'm not aware of? What does it even mean?
As written, Spoonweaver's template doesn't do much other than display a graphic and continuously check whether or not 'time' has run out (I think?). As long as 'time' has not run out, the game continues; once it runs out, the game will 'game over' itself. That said, his check for time running out makes no sense to me, so I'm just guessing that this is what is supposed to be happening.
I am Srime
Oh, yeah, that line looks messed up too!
I seem to remember that this board sometimes gets confused by > and < characters, so Spoonweaver might have posted something else entirely, and it just got mangled by the board.
http://pastebin.com/ is a pretty convenient alternative for posting code without fear of symbols being altered
Code:
if (time<<0>>50) then (loopchecker:=1)
I seem to remember that this board sometimes gets confused by > and < characters, so Spoonweaver might have posted something else entirely, and it just got mangled by the board.
http://pastebin.com/ is a pretty convenient alternative for posting code without fear of symbols being altered
I do tend to only put 1 " = " while coding and then normally have to go back and fix it after compiling, everytime. Sorry about that.
Anyways, a portion of the coding seems to have not made it to post.. shoulda double checked it.
I'll fix it in a second.
Fixed-most likely
Anyways, a portion of the coding seems to have not made it to post.. shoulda double checked it.
I'll fix it in a second.
Fixed-most likely
Code:
plotscript,HudLoop,begin
variable (hud,loopcheck,hunger,time)
time:=300
loopcheck:=0
hunger:=0
hud:=load medium enemy sprite (num, palette)
put sprite (hud, 0,0)
#--loop begin--
while (loopcheck==0) do,begin
if (time==0) then (increment (hunger),time:=300 )
replace sprite (hud,hunger)
decrement(time)
if(hunger==50) then (loopchecker:=1)
end
#--loop end--
gameover
end
plotscript,HudLoop,begin
variable (hud,loopcheck,hunger,time)
time:=300
loopcheck:=0
hunger:=0
hud:=load medium enemy sprite (num, palette)
put sprite (hud, 0,0)
#--loop begin--
while (loopcheck==0) do,begin
if (time==0) then (increment (hunger),time:=300 )
replace sprite (hud,hunger)
decrement(time)
if(hunger==50) then (loopchecker:=1)
end
#--loop end--
gameover
end
Spoonweaver wrote:
I do tend to only put 1 " = " while coding and then normally have to go back and fix it after compiling, everytime. Sorry about that.
Anyways, a portion of the coding seems to have not made it to post.. shoulda double checked it.
I'll fix it in a second.
Fixed-most likely
Anyways, a portion of the coding seems to have not made it to post.. shoulda double checked it.
I'll fix it in a second.
Fixed-most likely
Code:
plotscript,HudLoop,begin
variable (hud,loopcheck,hunger,time)
time:=300
loopcheck:=0
hunger:=0
hud:=load medium enemy sprite (num, palette)
put sprite (hud, 0,0)
#--loop begin--
while (loopcheck==0) do,begin
if (time==0) then (increment (hunger),time:=300 )
replace sprite (hud,hunger)
decrement(time)
if(hunger==50) then (loopchecker:=1)
end
#--loop end--
gameover
end
plotscript,HudLoop,begin
variable (hud,loopcheck,hunger,time)
time:=300
loopcheck:=0
hunger:=0
hud:=load medium enemy sprite (num, palette)
put sprite (hud, 0,0)
#--loop begin--
while (loopcheck==0) do,begin
if (time==0) then (increment (hunger),time:=300 )
replace sprite (hud,hunger)
decrement(time)
if(hunger==50) then (loopchecker:=1)
end
#--loop end--
gameover
end
Code:
(num, palette)
I dont get that bit, They are in parenthesis so are they what the HUD will load.
So num is number the enemy, 0,1,2,3 ect and im assuming that palette is the color palette, 0,1,2,3 ect
Is that correct or am I just being stupid??



