I've always wondered if people had good ways of "telling the coding" when a fight between two people has started. Obviously I'm not talking about situations where both people agree to a fight or where you get transported to a place each time you fight.
There are numerous reasons to want to know the start of a fight. For example: to report to the game that a fight has started, to play background music or to auto-equip something.
An approach where if you hit someone, you tell the code a fight has started doesn't REALLY work since it could be for just 1 hit and the fight won't neccessarily end. Ofcourse this leads to endless possibilities since we can't ever be sure that a fight has ended(or can we...?).
Anyway, discuss! =P
ID:153125
![]() Dec 24 2004, 1:49 am
|
|
![]() Dec 24 2004, 1:55 am
|
|
It'd be annoying snuggling up to sleep at night with the words "PICK YOUR MOVE!" ringing in your ears.
|
Everyone gets a 'combat_mode' var. When you hit someone it's set to fifteen seconds and the music starts. Then it counts down, once the 'combat_mode' time is up the music stops.
That way if you hit someone again it gets pushed back up to fifteen seconds. If it makes it to zero then the chances are you've left combat (if not you've stopped to exchange insults). |
If it makes it to zero then the chances are you've left combat (if not you've stopped to exchange insults). "I question your ancestry!" "Yeah?! I believe your mother was not a woman, but rather a hound!" "At least my mother does not go 'working over' His Lordship's squires!" "HAVE AT YOU, KNAVE!" I don't see that happening in any online RPG any time soon. People don't tend to roleplay anything once the blows start flying. |
Spuzzum wrote:
If it makes it to zero then the chances are you've left combat (if not you've stopped to exchange insults). Unless it gave you points? |
Generally, whenever a fight is to be initiated, the aggressor has to do something to the victim- attack, cast a spell, fire a photon death ray, whatever. This initiates the combat. So, in your "attack/fight/brutally murder" verb, you can call check to see if the victim is fighting yet and, if not, trigger the appropriate response/flag/vars. The way I have it set up in a current project, the attacker is added to the victims fighting list (therefore, fighting lists with a length indicate and active fight) and, if there is no current target in range, set as the victim's target as well so that they can begin defending themselves. If a player cannot see his target/foe for a given cooling of period, the foes are removed from each other's fighting lists and peace is restored. If a foe is incapacitated, the fight also ends (merciful foes will stop sooner- say at a serious injury, bloodthirsty ones may not stop at all).
|
I think that is mostly because it takes time to type, time in which the opponent could be attacking. I have been slain many times in games while I was typing up something to say to my opponent.
This is yet another reason why microphone chat support in games is good. If you can talk while you are playing, you are not interrupted and can speak as much as you want. At the very least, games need a way to halt typing and continue with your action without having to start typing your speach over again from the beginning. In many games, I have to hit enter and input a half-typed phrase in order to get back into the action, either that or give the opponent a few free attacks while I type (or miss out on whatever else is happening). |
Loduwijk wrote:
This is yet another reason why microphone chat support in games is good. If you can talk while you are playing, you are not interrupted and can speak as much as you want. Yeah, but the average MMORPG player doesn't sound like a brave knight. It sort of kills the atmosphere to hear a Giant Orge's voice breaking. I like SuperSaiyanGokuX's approtch in Dragonball:TC. It includes talking in the combat system (it's turn based however). It's nice because even the NPCs say something during combat. |
Yeah, but the average MMORPG player doesn't sound like a brave knight. What popped into my mind was an eight year old with a lisp. "Thucthesth! We have thucthesthfully captthured the enemy brigadeth, commander! Tshall we thend more troopth to reinforth the pothithion, or are the legionth needed elthwhere?" It sort of kills the atmosphere to hear a Giant Orge's voice breaking. In addition to that, there are males who play as females and females who play as males -- not generally because they're gender-confused or because they want to hide their true gender, but rather because they genuinely want to roleplay as another gender. Aside from testing your range, it gives you a few insights into other people's thought processes -- acting female, for instance, automatically involves certain instincts and considerations that aren't always similar to males. I don't want to explain all of the differences, naturally, since that's getting into anthropology. I roleplay 50/50 male and female these days. My females are rarely recognisable as being played by a guy. (I toe the line if someone starts getting too "friendly" to one of my female characters, though. I neither want nor need any of that. ;-P) |
A guy gave me like, level 70 in armor in everquest when I said I'd send him pictures of me and my sister nude in the bathtub.
Rule of the thumb: Be a girl in giant MMORPGS |
Hell Ramen wrote:
A guy gave me like, level 70 in armor in everquest when I said I'd send him pictures of me and my sister nude in the bathtub. Roughly 80% of my time on MUDs, I've played female characters. The other 20% I've either been male as a mortal or used a name as immortal that didn't have any particular gender-specific ring to it (Tunafish, for example). Its interesting to observe how different people treat you. I found the following: As a female... 1) On PK-only MUDs, you got hunted less than as male by those who you hadn't killed. 2) On PK-only MUDs, you got hunted more than as male by those who you had killed ("You stupid bitch", etc etc) 3) You were offered guild/clanship, equipment and help more often. 4) It took more to instill respect in others as an immortal/character in official position Oh yeah...and 5) You got relatively frequent proposals for marriage, consents for x-rated socials (a feature specific to a certain MUD Codebase called GodWars which allowed you to have cybersex, orgasms, children, etc), I even had an immortal freeze my character, forcing it to consent to x-rated socials and then starting a bot on his end that ended up impregnating my character. Rape on a MUD, if you will. Interesting how that draws parallel to real-life in some ways. |