-Repick Command

daorc

Member!
Joined
Mar 11, 2004
Messages
178
Reaction score
0
Location
where you think
Website
daorcsmaps.tripod.com
ok try this:

EVENTS:
Player - Player 1(Red) type's '-repick' as an somthing somthing
CONDITIONS:
ACTIONS:
Unit-Remove - Remove **hero** from game
Unit-Create - Create 1 **wisp** at center of regin **your regin**
useing default building faces blah blah


The wisp is the thing you useing to pick your hero from the circle of power if thats how you did yours.. if you used a dialog then do

EVENTS:
Player - Player 1(Red) types '-repick' as an blah blah
CONDITIONS:
ACTIONS:
Trigger-Run - Run **your dialog trigger to choose hero**
 

Dethstalker

Member!
Joined
Apr 11, 2004
Messages
109
Reaction score
0
Location
Clearwater, Florida
Website
www.game-grounds.com
i dont get where u have *hero* what would i put there. I mean i try Last Created Unit but if the last unit was from player 5 then if i type it it makes his her get deleted and i get to repick.....can u be a little more specific.


This is what i did can u help a little.

Events:
Player - Player 1 (Red) types a chat message containing -repick as An exact match

Conditions:

Actions:
Unit - Remove (Last created unit) from the game
Unit - Create 1 Unit Selector for Player 1 (Red) at (Center of HeroSelection <gen>) facing Default building facing degrees
 

Speaker

Premium Member
Joined
Jun 20, 2003
Messages
2,808
Reaction score
2
Location
Computer
Events:
Player - Player 1 (Red) types a chat message containing -repick as An exact match
Conditions:
Actions:
Unit-remove (picked unit)
Or
Unit-Remove (matching unit)
Or

Events:
Player - Player 1 (Red) types a chat message containing -repick as An exact match
Conditions:
Unit is equal to a paladin (sumthin like that)
Actions:
Unit-Remove matching untri from game

Crap like that, lol. I don't have WE open with me right now :)
 

Dethstalker

Member!
Joined
Apr 11, 2004
Messages
109
Reaction score
0
Location
Clearwater, Florida
Website
www.game-grounds.com
Well its been a few months and i have improved a hell of a lot on mapping and i figured it out myself...u guys were no help really...sorry..this is how i did it:

Variable:
PlayerHero - Unit Array (10) - -None-

Triggers: [I only set this for player red but of course u need seperate triggers for each player]
================================
Hero 1
Events
Unit - A unit enters Start Lane Chooser <gen>
Conditions
((Entering unit) is A Hero) Equal to True
(Owner of (Entering unit)) Equal to Player 1 (Red)
Actions
Set PlayerHero[1] = (Entering unit)
================================
Repick 1
Events
Player - Player 1 (Red) types a chat message containing -repick as An exact match
Conditions
Actions
Unit - Remove PlayerHero[1] from the game
Unit - Create 1 Unit Selector for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Camera - Pan camera for Player 1 (Red) to (Center of Select Hero <gen>) over 0.00 seconds
================================

So if you want to make your own -repick option just use that...never fails
 

Darimus

BattleForums Addict
Joined
Oct 2, 2003
Messages
681
Reaction score
0
Website
www.spaceman.vze.com
Unit Group - Pick every unit owned by player (Triggering Player) Matching Condition: [Boolean Comparison] Unit is Hero = True and do Unit - Remove (Picked Unit) from the game.

or do what Dethstalker said, that will also work, just be a little bit more work.
 

Darimus

BattleForums Addict
Joined
Oct 2, 2003
Messages
681
Reaction score
0
Website
www.spaceman.vze.com
No mine won't. If you look at what I said again and come up with the same conclusion, then try again. :p

It uses a boolean comparison to remove the hero only.
 

New threads

Top