Hoppa till innehåll

Edita En Map


Dezen

Rekommendera inlägg

Jag har en footman frenzy map, men jag vill att man ska kunna välja random hero, så jag undrar om någon vet hur man kan ändra i mappen så att det går =) (Vet att det finns med random, men ingen med god mod ^^, inte vad jag hittar iaf)

Länk till kommentar
Dela på andra sajter

Om mappen är skyddad går det inte om du inte hackar den.

Du får helt enkenlt göra en trigger som går igång när man skriver typ -random och lägga in alla heroes.

 

Undrar om detta skulle fungera:

 

Events

Player - Player 1 (Red) types a chat message containing -random as An exact match // lägg till alla andra spelar med likadana actions.

Conditions

(Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 0

Actions

Set Random_Hero = (Random integer number between 1 and Random_Count)

Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees

Game - Display to (All players) the text: (A player has randomed + (Name of (Last created unit)))

Selection - Select (Last created unit) for (Owner of (Last created unit))

Player Group - Pick every player in (All players) and do (Actions)

Loop - Actions

Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)

Set Random_Data[Random_Hero] = Random_Count

Set Random_Count = (Random_Count - 1)

 

 

Om du vill veta, en map som är skyddad är egentligen bara skadad, worldedit kräver mycket mer filer än wc3 för att läsa mappen, om man skadar dessa kan wc3 läsa den men inte world editor.

Länk till kommentar
Dela på andra sajter

Events

Player - Player 1 (Red) types a chat message containing -random as An exact match // lägg till alla andra spelar med likadana actions.

Conditions

(Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 0

Actions

Set Random_Hero = (Random integer number between 1 and Random_Count)

Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees

Game - Display to (All players) the text: (A player has randomed + (Name of (Last created unit)))

Selection - Select (Last created unit) for (Owner of (Last created unit))

Player Group - Pick every player in (All players) and do (Actions)

Loop - Actions

Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)

Set Random_Data[Random_Hero] = Random_Count

Set Random_Count = (Random_Count - 1)

Du måste ju förklara vad det är för sorts variabler han ska använda. :blink:
Länk till kommentar
Dela på andra sajter

Events

Player - Player 1 (Red) types a chat message containing -random as An exact match // lägg till alla andra spelar med likadana actions.

Conditions

(Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 0

Actions

Set Random_Hero = (Random integer number between 1 and Random_Count)

Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees

Game - Display to (All players) the text: (A player has randomed + (Name of (Last created unit)))

Selection - Select (Last created unit) for (Owner of (Last created unit))

Player Group - Pick every player in (All players) and do (Actions)

Loop - Actions

Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)

Set Random_Data[Random_Hero] = Random_Count

Set Random_Count = (Random_Count - 1)

Du måste ju förklara vad det är för sorts variabler han ska använda. :blink:

 

Neee, det behövs inte.
Länk till kommentar
Dela på andra sajter

×
  • Skapa ny...