• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

About something

Status
Not open for further replies.

ManyJak

M

ManyJak

I have two things to ask u Ralle or any1 else who knows this.

1. Usually on some maps there is "Quests" or "Map info" and there r numerous of others subtexts. Like Version 2.2, Version 2.3. So how can i write those things too? To write in the Quest area and to maybe rename "Quests" to something else...

2. When some1 types a chat message to for example on my map to hire a creature to attack the other base. But the creature costs lets say 500g, when it spawns the owner of the units is player 1 (red) - but the player 1 (red) didnt summon the unit, and the creature moves and attacks to the other base.

Hope to have answer soon cuz these r the last things to make my (actually im remoding an old map) map better...

The map is: Gang Wars
 
Not quite shure if I got the second one there;

Sumthing like this:

[trigger:1:803f172866]Melee Initialization
Events
Player - Player 1 (Red) types a chat message containing Your text as An exact match
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) Current gold) Greater than or equal to 500
Then - Actions
Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing (270.0) degrees
Unit - Order (Last created unit) to Move To (Center of (Playable map area))
Player - Set Player 1 (Red) Current gold to -500
Else - Actions
Game - Display to (Player group(Player 1 (Red))) the text: Not enough gold to ...[/trigger:1:803f172866]
 
there are a few mistakes made in that but it is the general idea, you want any player to be able to buy a unit but the unit then belongs to player red. also you did set player gold, it should be add player gold. also you may want to put a wait of a 0.3 between the spawn and order triggers for saftey.

[trigger:1:366251be6a]
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing Your Text Here as An exact match
Player - Player 2 (Blue) types a chat message containing Your Text Here as An exact match
Player - Player 3 (Teal) types a chat message containing Your Text Here as An exact match
Player - Player 4 (Purple) types a chat message containing Your Text Here as An exact match
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) Current gold) Greater than or equal to 500
Then - Actions
Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Order (Last created unit) to Move To (Center of (Playable map area))
Player - Add -500 to (Triggering player) Current gold
Else - Actions
Game - Display to (Player group((Triggering player))) the text: No Enough Gold[/trigger:1:366251be6a]

ps, how do u do the thing where it comes up in wc3 code?
 
I NEED HELP

im kinda a noob at custom spells i downloaded some and i dont know how
to use them in my game can anyone help me? :)
 
unfountunatly you have to re-make them in your map, they are just guide lines really, follow them and add little bits in yourself (like the events when it happens and the unit it happens to). but there is no way of copying them into your map, re-making is the only way, sorry :(.
 
Status
Not open for further replies.
Back
Top