Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Battling

10 years ago

I'm thinking of possibly making a game, but I really want battles in it. I was wondering, how do you make battles work kind of like what Morgan did with Hunter?

Battling

10 years ago

Here are the members you should ask (politely, of course).  They have magical ways of doing things...

@Morgan_R @nmelssx @Killa_Robot @BerkaZerka

Sorry if I left anyone out...

Battling

10 years ago
Short Answer - Scripting. Have links (like combat links) lead to the same page the fight is on (so it links back to itself, just changing some variables), then when the fight is over have a link go to a different page.
Long Answer - You'd need to give more details for me to explain further.

Battling

10 years ago

So basically, there would be like three possible moves the player could do. Each one affects the thing they are battling in a different way, but can vary in how it affects the thing. For example, the player could choose Slash with a Sword, and this could either affect the thing greatly, affect them hardly (if they are wearing armour or if the player is injured or something), or miss. And another attack could do something different to that. I really want it to be detailed.

Battling

10 years ago

I was also wondering how you could add 'points' of some kind based off of winning battles, and how these could affect certain things that happen in the game, and also your abilities.

Battling

10 years ago
Points:

If you have a battle ending, you can always add to a link the points. In other words, when you add your link there will be a button next to the link with a +- sign. When you click on that, you get options of changing variables. You can add points there to a point value of your choice.

Then later, you can use that value to, well, do stuff. You can use the stop button to limit the appearance of a link based on those points. For example, you could have one link that says, "You sortof win" and that might have the limitation of less than 5 points. A second link could be "You win" and that could be 5 or more points.

Abilities:
These are rather simple to do, but it depends what you want to do with them.

Battling

10 years ago
That sounds like basic math with links. Have you looked through the articles yet that describe how to do things?

If you look through them you should be able to get a pretty good idea how to do what you want to do.

Battling

10 years ago

It's worth noting that I consider Hunter to be a demonstration of something that doesn't really work, with regards to text-based combat. I don't have any real advice as to what would work better, but... I recommend that you do some thinking about design, and not just implementation.

Also, my obligatory recommendation: Twine if you're not interested in commercial publication. ChoiceScript if you are. CYS if you really want to make a game that lives here... and cannot be backed up or hosted elsewhere.

Battling

10 years ago

It involves a lot of numbers, logic, and scripting. 

Battling

10 years ago

I want to do a sort of journey where the player fights things and sort of 'levels up' in a way, and the more things they fight the better they get and the farther in the game they can advance.

Battling

10 years ago

Is that so? Kind of like my game? 

Battling

10 years ago
Okay, that's not too hard, but it is involved. You'll need variables for levels and points. If you're going to have stats as well, those would be additional variables. A bigger question might be the flow of the game:

1. Are you going to have the user pick what they want to battle?
2. If not, the story may end up being very linear and not a story, but only a game.
3. If so, how will that affect what comes next? In other words, what's the flow through the battles?
4. Is it just a linear series of battles where basically you either defeat the monster and proceed and you lose, die, and the game ends?
5. How much do you want this to be random in the battles, or do you want none of it to be random?

Battling

10 years ago

I would like it to be a continuous game, sort of like a saved game, but it does have a storyline. Here's a kind of example.

Player has a sword. They are low ability. They live in a town. They want to get to the other town. They walk through the forest in between. Variable: Sometimes they will be attacked, sometimes not. They can be attacked by different creatures. 

They fight the creature. If they win, they get points. If they lose, they get 'warped' back to their town, and lose some points. They can move back and forth between towns when they want, moving through the forests and other such areas. Once they get a certain amount of points, they can move to other areas in the game.

Battling

10 years ago

http://chooseyourstory.com/help/articles/article.aspx?ArticleId=48

The scripting articles should give you enough understanding so that you figure out how to pretty much anything you want in your game.

There's no need to re-explain what has already been explain in the articles.

Battling

10 years ago

The articles on scripting, variables and the advanced editor tell you how to do pretty much everything you asked.

Battling

10 years ago

Well, both of my games (the non-quiz ones) have battle systems... but I honestly can't remember the one in Hunter.
 

Battling

10 years ago
Hunter was a greatly dumbed-down version of Berka's combat system I believe (no offensive to Morgan).

Battling

10 years ago

Ahh.