HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Looking for swap system.

05-28-2008, 12:51 PM#1
cohadar
Anyone has a good jass hero swap system?
05-28-2008, 01:05 PM#2
Dragon.Head
What do you mean by hero swap?
05-28-2008, 01:50 PM#3
cohadar
I mean -swap command from dota or something like that.
05-28-2008, 01:53 PM#4
Vexorian
Quote:
Originally Posted by cohadar
I mean -swap command from dota or something like that.
And what does that do?
05-28-2008, 02:00 PM#5
cohadar
The whole point is that you can swap heroes with your teammates after the game starts, the method is irrelevant.
(because some people don't like the hero they got randomly)
05-28-2008, 02:03 PM#6
Vexorian
I don't think anyone made a public release for that, at least not a good one, so go and make your own.
05-28-2008, 02:31 PM#7
emjlr3
um, as I said at TH

switch ownership

obviously a -swap command would be in there, new trigger, creates maybe a dialog, with avaible players and their hero, click on to intiate, asks other play if he wants to, new trigger register -ok or something, or another dialog with yes or no -- a 10 min coding job maybe?

personally i dont have one, but i quick 5 min search through dotas .j would provide an answer
05-28-2008, 04:42 PM#8
Themerion
I personally prefer to use in game text-commands as little as possible. Imo a better method is to make two circles of power, to which you put the floating text "hero swap". If two players put their heroes in the circles, they will swap heroes.
05-28-2008, 05:11 PM#9
Strilanc
Text commands are only a bad idea for things new players need to do (e.g. -help is hilariously useless).

In this case the method should be simple: a player types -swap (player), which sets the player they want to swap with. If a cycle forms (a wants b wants a, or a wants b wants c wants a), then the heroes swap. Finally, if B wants A, and someone gets A, that cancels B wanting A.
05-28-2008, 07:19 PM#10
Fulla
Circles doesn't sound good to me, you can multiple ppl walking in them.
I never understand the overly anti text command approach.

Text commands are the simplest & best way for commands than are used but only if used
Once & during the start of the game.

How I'd have it:
  • You type -swap, a list comes up with a numbers + players + their heroes
  • You then type -swap #
  • A Dialog comes up
    Title - Do you want to swap Hero?
    - Option - Player Name, Hero Name
    - Option - NO!!
  • During this time if another guy asks to swap, his name + hero gets added to your dialog.
  • Finally, could have restrictions, such as time limit, may only ask to swap once per player etc.
05-28-2008, 07:46 PM#11
Themerion
Since you seem kind of set on the -swap text command, at least make that command bring up a dialog with the possible choices? :)
05-28-2008, 07:49 PM#12
Rising_Dusk
Quote:
Originally Posted by Fulla
I never understand the overly anti text command approach.
Because it's lame and inelegant. I'd give all heroes a skill that lets them select another hero on the map and swap owners with it. Then just remove the abilities from the heroes after X seconds. Done.

It's not only cleaner this way, but it doesn't require dialogs breaking the continuity of gameplay at all. Hell, it also doesn't even require the typing of anything. I can't fathom there being any other better way to approach it.
05-28-2008, 08:01 PM#13
cohadar
Quote:
Originally Posted by Rising_Dusk
Because it's lame and inelegant. I'd give all heroes a skill that lets them select another hero on the map and swap owners with it. Then just remove the abilities from the heroes after X seconds. Done.

It's not only cleaner this way, but it doesn't require dialogs breaking the continuity of gameplay at all. Hell, it also doesn't even require the typing of anything. I can't fathom there being any other better way to approach it.

And how would the target player accept the swap?
05-28-2008, 08:05 PM#14
Themerion
Quote:
Originally Posted by Rising_Dusk
I'd give all heroes a skill that lets them select another hero on the map and swap owners with it.

A good way, for DotA.

However, it's not that good if you want players to be able to swap heroes through the entire game.
05-28-2008, 08:08 PM#15
Rising_Dusk
Quote:
Originally Posted by Themerion
However, it's not that good if you want players to be able to swap heroes through the entire game.
Most maps with such functionality requirements have spellbooks loaded with these configuration spells -- or so I've seen on BNet. Something as directly applicable to the heroes as a swap command should never be approached with text inputs and dialogs have no place in any map that claims to be 'fast paced'.
Quote:
Originally Posted by cohadar
And how would the target player accept the swap?
Send them a message saying "X player selected yours for swap", ping the source hero, and have them return casting of the ability on the source hero to confirm.