wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 05-28-2008, 12:51 PM   #1
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default Looking for swap system.

Anyone has a good jass hero swap system?
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 05-28-2008, 01:05 PM   #2
Dragon.Head
User
 
Dragon.Head's Avatar
 
Join Date: May 2008
Posts: 24

Dragon.Head has little to show at this moment (1)

Default

What do you mean by hero swap?
Dragon.Head is offline   Reply With Quote
Old 05-28-2008, 01:50 PM   #3
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

I mean -swap command from dota or something like that.
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote
Old 05-28-2008, 01:51 PM
Captain Griffen
This message has been deleted by Vexorian.
Old 05-28-2008, 01:53 PM   #4
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Quote:
Originally Posted by cohadar
I mean -swap command from dota or something like that.
And what does that do?
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 05-28-2008, 02:00 PM   #5
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

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)
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.

Last edited by cohadar : 05-28-2008 at 02:01 PM.
cohadar is offline   Reply With Quote
Old 05-28-2008, 02:03 PM   #6
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

I don't think anyone made a public release for that, at least not a good one, so go and make your own.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 05-28-2008, 02:31 PM   #7
emjlr3
Rehabbing
 
emjlr3's Avatar
 
Join Date: Jun 2005
Posts: 1,386

Submissions (14)

emjlr3 is a jewel in the rough (151)emjlr3 is a jewel in the rough (151)

Mapping Contest First Place

Send a message via AIM to emjlr3 Send a message via MSN to emjlr3
Default

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
__________________

Last edited by emjlr3 : 05-28-2008 at 02:34 PM.
emjlr3 is offline   Reply With Quote
Old 05-28-2008, 04:42 PM   #8
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

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.
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...
Themerion is offline   Reply With Quote
Old 05-28-2008, 05:11 PM   #9
Strilanc
User
 
Strilanc's Avatar
 
Join Date: Jun 2007
Posts: 917

Submissions (4)

Strilanc has a spectacular aura about (131)

2008 Spell olympics - Fire - Gold

Default

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.
__________________
Don't pay attention to this signature, it's self-contradictory.
Strilanc is offline   Reply With Quote
Old 05-28-2008, 07:19 PM   #10
Fulla
Evil Overlord
 
Fulla's Avatar
 
Join Date: Jan 2006
Posts: 1,416

Submissions (3)

Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)

Default

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.
__________________

Last edited by Fulla : 05-28-2008 at 07:21 PM.
Fulla is offline   Reply With Quote
Old 05-28-2008, 07:46 PM   #11
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

Since you seem kind of set on the -swap text command, at least make that command bring up a dialog with the possible choices? :)
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...
Themerion is offline   Reply With Quote
Old 05-28-2008, 07:49 PM   #12
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

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.
__________________
Rising_Dusk is offline   Reply With Quote
Old 05-28-2008, 08:01 PM   #13
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

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?
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote
Old 05-28-2008, 08:05 PM   #14
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

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.
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...
Themerion is offline   Reply With Quote
Old 05-28-2008, 08:08 PM   #15
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

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.
__________________
Rising_Dusk is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 08:33 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services