How to add -repick ?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Little-SecRet
Newcomer
Posts: 11
Joined: April 17th, 2008, 2:37 am

How to add -repick ?

Post by Little-SecRet »

how to add repick in map.
I want repick hero if choose wrong.
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: How to add -repick ?

Post by naturesfury »

add a function that kills/removes hero and create a new wisp or the chooser
then add trigger w/ event -repick, condition player has hero and player is playing and such, and action function mentioned above

but........depending on the map, theres different stuff that has to be accounted for
(like if its x hero siege, u haffta unlock the hero so that the one u chose is chooseable again)

so i would put it as a request and try to lrn from that
(assuming u dont rly know JASS, cause ur asking about this)