Post new topic    
Page «  1, 2, 3
Liquid Metal King Slime
Send private message
 
 PostWed Oct 15, 2014 9:43 pm
Send private message Reply with quote
Heh, that's pretty funny that those commands exist pepsi. To me, it's one of those problems I wasn't thinking about when I was in scripting mode so I never looked for an answer. I do that a lot unfortunately. I also agree with your opinion that more people need to look through the plotscripting dictionary. It explains everything pretty well.

The main thing I'd like to address about all of the scripts I posted here is that without a tiny bit of scripting knowledge you WILL NOT be able to put these into your game successfully. No matter how well the tech demo is set up, your personal game will need things set up in a slightly different way and you'll need to know how to do that. These scripts are not meant to be copy and pasted into a game but rather to act as a guide to show how certain things can be done. If you want custom made scripts and don't want to learn scripting yourself you need to find someone to work with.

I'll also be uploading a tech demo of these scripts shortly.

Overworld Item Tech Demo:http://www.slimesalad.com/forum/viewgame.php?t=1882
Slime Knight
Send private message
 
 PostThu Oct 16, 2014 3:03 pm
Send private message Reply with quote
Thanks again for the help!
I finally managed to mix the hammer and the shovel scripts, so you can remove walls and find items with the shovel.(It actually works perfect but I need a part where the player isn't allowded to move, because if you walk during the script does his work you can change blocks, you just walked over into the graphic, that appears if you just dug an dirt block.)
The next thing to do, is like I said a working boomerang. I know you guys just sent me a script for that but that didn't work Sad
It can also be a slingshot, for wich you don't need ammo. I just want to keep it as easy as possible.
Liquid Metal King Slime
Send private message
 
 PostThu Oct 16, 2014 4:12 pm
Send private message Reply with quote
Whelp, the buck stops here.

I glad to hear that you went about changing the scripts for your own purposes. I'm sorry to hear that you seem to have missed the player suspension commands. I'm also sorry to hear that the boomerang wasn't to your liking. Perhaps you didn't set things up correctly?

In any case, there will be no more scripts. Time to spread those wings and fly.
Slime Knight
Send private message
 
 PostThu Oct 16, 2014 8:40 pm
Send private message Reply with quote
Froginator wrote:
It can also be a slingshot, for wich you don't need ammo. I just want to keep it as easy as possible.

Honestly Ammo is pretty much your easiest request in this entire thread. You have a couple options for how to store this ammo. You can either store it as a global variable which you decrement as the item is used. This option I think is kinda sloppy, but it is the easiest to implement. Your next option is to check for an item in the player inventory. This option allows the player to use a shop to buy additional ammo, and the player can also check their ammo really easily from within the standard inventory window. Here's the script you might use to check for slingshow/bow ammo:

Code:
if (not inventory(Item:arrow)) (return)


I haven't created a plotscript in awhile, and I cannot recall what the NOT operator is, it could also be a !, so check the docs. But at the end of the day, in the script that shots this slingshot or bow, use the inventory() command to check if they have any of that item in their inventory.
Super Slime
Send private message
 
 PostThu Oct 16, 2014 8:50 pm
Send private message Reply with quote
Chronoboy wrote:
I haven't created a plotscript in awhile, and I cannot recall what the NOT operator is


It's a function.
Code:
if (not(thing)) then (...)

Mega Tact v1.1
Super Penguin Chef
Wizard Blocks
Liquid Metal King Slime
Send private message
 
 PostThu Oct 16, 2014 8:51 pm
Send private message Reply with quote
the NOT operator cannot be abbreviated to ! and it requires parenthesis

Code:
if (not(inventory(Item:arrow))) then(exit script)
Slime Knight
Send private message
 
 PostThu Oct 16, 2014 9:13 pm
Send private message Reply with quote
Bob the Hamster wrote:
the NOT operator cannot be abbreviated to ! and it requires parenthesis

Code:
if (not(inventory(Item:arrow))) then(exit script)

Thank you kindly for the updated script! The last time I seriously sat down to write a script for game was back in 2010(I think) for Chronoboy Adventures.

On the topic of plotscripting and it's related dictionary, may I make a suggestion for the automatically generated docs(they are still auto-generated from an XML or another file, right?), is to enable easily access to each section from another sections. I'd recommend using the spiffy jquery-aciTree in the dictionary to make navigation of the dictionary a breeze. I was honestly thinking of going about this myself, but if the auto-generated docs support adding jQuery and a widget...

If not, I'd be more than happy to go about generating a PlotDict Web App, that uses 2-pane technology. For example, on the left you would still have the usual Category list, but in a tree form. You can easily expand and collapse these categories to see all the commands in each. Then clicking on a command would display it in the right pane. I guess this is similar to the familiar Windows Help system. This could be available alongside, the traditional dictionary that has been around since I can remember.
Liquid Metal King Slime
Send private message
 
 PostThu Oct 16, 2014 9:26 pm
Send private message Reply with quote
Chronoboy wrote:
If not, I'd be more than happy to go about generating a PlotDict Web App, that uses 2-pane technology. For example, on the left you would still have the usual Category list, but in a tree form. You can easily expand and collapse these categories to see all the commands in each. Then clicking on a command would display it in the right pane. I guess this is similar to the familiar Windows Help system. This could be available alongside, the traditional dictionary that has been around since I can remember.


A 2-pane web app would be awesome!

This is an automatically updating copy of the xml file: http://hamsterrepublic.com/ohrrpgce/docs/plotdict.xml
Metal King Slime
Send private message
 
 PostFri Oct 17, 2014 9:52 am
Send private message Reply with quote
Yes! I would love improvements to the layout of the dictionary. The problem is that I don't know a think about XSL, or HTML for that matter.

I think the commands could also do with recategorisation, or the addition of subcategories. Tag would also be nice. For example "suspend npcs" relates to both NPCs and "suspending things".

Quote:
@TMC:
How many people have PLAYED or even asked about an ohr game on mac? Maybe two people ever. :V


It's true that I haven't seen non-OHR users asking about how to play games on Mac (though my whole point is that people don't indicate it's a possibility), but we DO have a lot of Mac users.
Liquid Metal Slime
Send private message
 
 PostSat Oct 18, 2014 7:41 am
Send private message Reply with quote
I'm a Mac user, if you wanted proof that they exist. Also [url]codecademy.com[/url] has a pretty good tutorial for HTML that you can complete rather quickly. HTML basics are really easy to learn, so it's worth it if you think it would help you out to know it.
My pronouns are they/them
Ps. I love my wife
Slime Knight
Send private message
 
 PostSat Oct 18, 2014 5:32 pm
Send private message Reply with quote
After all the programming with hammer, shovel and boomerang, theres another question left. How can I make shoes, wich have to be equipped by one of the heroes (it doesn't matter wich of them) wich make the characters walk faster and let them have a chargeable dashing/running move (Just like the pegasus boots in a link to the past)?
Metal Slime
Send private message
 
 PostSat Oct 18, 2014 9:14 pm
Send private message Reply with quote
Again, I have to question whether the OHR is the best engine for whatever game it is that you are designing. This script has the potential to be pretty easy (at least for someone who has good mastery over reading keypress inputs), but aside from cosmetics (sound effect? different graphic for running?) there's an important question:

Is it important for the character to 'bounce backwards' if they hit a wall, like in Zelda? This was an important mechanic in Zelda, allowing a form of 'jumping' that was otherwise unavailable. This behavior will make the script a bit more difficult.
I am Srime
Liquid Metal Slime
Send private message
 
 PostSat Oct 18, 2014 11:15 pm
Send private message Reply with quote
If you want a different perspective on the dash move, look at Mother 3. There's a running function in it similar to the one in link to the past, but probably is easier to emulate on the OHR.
My pronouns are they/them
Ps. I love my wife
Slime Knight
Send private message
 
 PostSun Oct 19, 2014 7:17 am
Send private message Reply with quote
The one from mother 3 is probably the better choice I think the version without bouncing back is also okay there should be a sound and a graphic where the character has some dust particles behind him, but without using slices. I also think that the OHR is a really good choice bemause it's relatively easy to use and the programming language is easy to undertstand.
Display posts from previous:
Page «  1, 2, 3