HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Turn based combat

02-10-2005, 08:56 PM#1
imwithsstupids
Ok so me and my friend are going to make a new kind of rpg (to wc that is) you get a main character and walk around. they allong the way you can get followers that just follow you. One of the unique features of this game is its turn based combat. So far this is waht i have. You can walk around then when a hostile attacks you or u attack it. you both will stop and the camera will zoom. then you will be moved to the fighting areana. This is where i am running into trouble. I gave all the fighters in the areana the orc burrow ability so they cannot attack. Now i just need to get the turns working. I dont know how i should do it. should i disable control and have a dialog appear saying what u can do. Like attack, special, retreat, use potion ect. then u click on the button and it will do the corresponding action. then it will go to the next person in your party, same thing. once you are done the creeps will have a turn. it will keep going until you retreat or you win or are defeated.

So i am wondering if there are any existing maps like this that i can take a look at, or how would u suggest doing this. The current map i have is just the defult map with a couple units on it and the triggers are a mess. so i got nothing to show what i got so far. so i just explained i got it up until the battle would start. this is really making my head hurt so i need a couple suggestions. thanks in advanced
02-11-2005, 01:12 AM#2
johnfn
Turn based combat is fun stuff. Anyways, there's a few vital components you will need (i cant give you a full walk through because i have to go soon)

First of all you need a trigger to catch key events, youll need a trigger to recognize when a battle starts, and youll need a multiboard to hold the battle options.. You will need a trigger to actually wait for the keys (with a condition that means that your actually in battle). Then youll have to wait for a key to mean attack, then have him run back to where he was. Then have the other guy attack and run back to where he was. For a neat effect you could have the camera rotate around them all. And lastly, youll need detection of battle over, for either good guy or bad guy. GTG, ill explain it more later.
02-11-2005, 01:16 AM#3
imwithsstupids
thanks, that would be awsome if you could explain it more. i already kinda know waht i need. i got the battle starting triggers that move them to the seperate areana. now i just need the takeing turn things
02-11-2005, 08:16 AM#4
divine_peon
turn based combats will be hard to make, but it's fun.

actually i am doing and will finish this type of map about tomorrow or the next day. :D

the thread is here


Quote:
Originally Posted by imwithsstupids
So i am wondering if there are any existing maps like this that i can take a look at, or how would u suggest doing this. The current map i have is just the defult map with a couple units on it and the triggers are a mess. so i got nothing to show what i got so far. so i just explained i got it up until the battle would start. this is really making my head hurt so i need a couple suggestions. thanks in advanced

yup. mine, and hero rpg is there.
02-11-2005, 09:01 PM#5
imwithsstupids
thanks, i took a look at the map and how it runs. that is more complex then how mine is gunna be. thank god cause urs is really complicated, but after staring at it for like 20 minutes i got it. if its ok with you can i use some of your triggers as a refrence. what i needa do now that i know its possible is make it so it will set up battles automatically and you can get people to help you along the way, and i need it mulyplayer compatible
02-11-2005, 09:26 PM#6
Metal_Sonic64
Check out this battle system, made by a friend: Silverl3ullet. It's a working battle system with the eception of the enemies, they don't fight back yet.
02-11-2005, 09:36 PM#7
johnfn
Its pretty easy to get the enemies to fight actually, just order them to attack the main unit, then move back to a point where they were.
02-11-2005, 11:07 PM#8
imwithsstupids
thanks for all the help i think i got a primitive virsion working. not even close to being done but yay
02-12-2005, 05:35 AM#9
divine_peon
Quote:
Originally Posted by imwithsstupids
thanks, i took a look at the map and how it runs. that is more complex then how mine is gunna be. thank god cause urs is really complicated, but after staring at it for like 20 minutes i got it. if its ok with you can i use some of your triggers as a refrence. what i needa do now that i know its possible is make it so it will set up battles automatically and you can get people to help you along the way, and i need it mulyplayer compatible
sure you can... that's why i did not protected it. juz give me enough credits eh?

multiplayer compatible... hmm... i'll see what i can do.

and about your primitive version, can i see it?
02-12-2005, 05:38 AM#10
imwithsstupids
yeah sure illl post it up here. thanks and of coarse im gunna give u credit.....there should be a way of copyrighting your maps. lol its only 2.2 kb. anyways when it loads move ur peasent around. once u find a guy. he will attack you. then the camera zooms. and u click on ur peasent and select attack. thats all that works now. and the comps dont attack either. but once u beat the knight it will move you all out. and u can do it over and over again. (actually 3 times, there is only 3 guys in the map.) Anyways now im gunna try to make it multyplayer compatible. ive already kinda started. The variables are all screwed up and not named entirely correct, and the trigger names arnt right. other then that its all good
02-12-2005, 05:02 PM#11
imwithsstupids
ok i was working on it for a while and here is what more i got. as soon at you are attacked it will set you as the defender and your attacker as the attacker (its just 2 unit variables). now this is the hard part for me. I need it to be able to have the attacker go first, then the defender. i dont really know how to do this, it just hurts my brain thinking about all this. im trying to make it more complicated then it realy is.
02-14-2005, 04:14 PM#12
ABM
Quote:
Originally Posted by imwithsstupids
ok i was working on it for a while and here is what more i got. as soon at you are attacked it will set you as the defender and your attacker as the attacker (its just 2 unit variables). now this is the hard part for me. I need it to be able to have the attacker go first, then the defender. i dont really know how to do this, it just hurts my brain thinking about all this. im trying to make it more complicated then it realy is.

i did a checkmate like board with 10 units in both team and where u need to move with keyboard just like in final fantasy tactic, with action point that limit the move and with attack triggered with dialogue menu and selection unit.
it was fun but it was impossible for me to trigger an AI that could move alone, use strategy, attack, cast spell.

the map was only for 2 player, it is lost a long time ago since i formated twice my computer due to window xp problem and virus.
if u are interested i can help u to do something like this, but since it use computer played unit, i think the "fantasy star" (attack and go back way) is easier to trigger.

i wish you good luck for your map and if you have trouble ask i will try to help if i can. :god_help_us:
02-14-2005, 08:53 PM#13
imwithsstupids
thanks, i mostly got the combat system to work (60% or so) it all works pretty well cept for a few bugs, now i just needa set everything to work with variables instead of telling it what unit that has already been placed. now i also needa make it so that computers attack. the current way im doing it is very buggy. there seems to be a 50-50 chance that it will somehow not work and both units will unpause and attack normally. I also needa add support for multiple units instead of just 1 on 1. its gunna take allot of work but ill manage. thanks for the support and offering help, i may need it

peace
02-15-2005, 12:15 PM#14
ABM
maybe u should do everything with trigger and play animation instead of making the unit attack?

will everyplayer has only one hero or many hero? will the many hero of one player be only hero, or hero and unit?

will the peoples continue to play normally while other people will be fighting?

will there be many enemy fighting at same time and is there a max to the number of fighting enemy? (depending on arena size)

will unit be able to cast spell, use ability or only fight (attack) ?

will people be able to join or not an already started fight?

if u can answer all this i will try to give you ideas and hints, on how i would try to do it.
02-15-2005, 12:27 PM#15
divine_peon
and try to make more out of it. use your imaginations. :D