HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Minimap Pinging.

06-29-2006, 07:05 PM#1
Azhag
I was wondering.
How could I make it so when my hero clicks on an item, which does nothing, it will trigger it so the computer (red) will ping on a certain area on the minimap?
06-29-2006, 07:17 PM#2
PipeDream
I assume you mean when the player clicks on an item a hero is carrying. Give the item a dummy spell and run a trigger when a unit casts that spell. Use PingMinimapEx to generate colored pings.
06-29-2006, 07:27 PM#3
Archian
do you mean something like this
Trigger:
Ping Minimap
Collapse Events
Unit - Paladin 0002 <gen> Acquires an item
Conditions
Collapse Actions
Cinematic - Ping minimap for Player Group - Player 1 (Red) at (Center of (Playable map area)) for 1.00 seconds

or

Trigger:
Ping Minimap
Collapse Events
Unit - Paladin 0002 <gen> Uses an item
Conditions
Collapse Actions
Cinematic - Ping minimap for Player Group - Player 1 (Red) at (Center of (Playable map area)) for 1.00 seconds
06-29-2006, 07:34 PM#4
SFilip
i think he wanted Cinematic - Ping Minimap With Color for the action...
06-29-2006, 07:53 PM#5
Jacek
yeah pipedream explained it long ago... for your information:

Cinematic - Ping Minimap With Color = PingMinimapEx
06-29-2006, 08:22 PM#6
Azhag
I wanted it, so when the Hero clicks on the item, or "uses" it... a ping signal will be pinged at a certain location on the map.
So Archian was what I wanted. Thank you.
06-29-2006, 08:31 PM#7
Archian
Quote:
Originally Posted by Azhag
I wanted it, so when the Hero clicks on the item, or "uses" it... a ping signal will be pinged at a certain location on the map.
So Archian was what I wanted. Thank you.

you welcome, feel free to add rep if you think i helped you
06-29-2006, 08:40 PM#8
Azhag
Also, I have another question.

How would I make it, so it will only ping if a hero uses the item.
How do I make it so the ping only shows to the player who used the item.

Thanks.
06-29-2006, 08:55 PM#9
PipeDream
Collapse JASS:
if(IsHeroUnitId(GetUnitTypeId(GetTriggerUnit()))) then
    if (GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit())) then
        call PingMinimapEx(...)
    endif
endif
06-29-2006, 09:00 PM#10
shadow1500
Add a conditon to the trigger that checks that the item type of the maniupatled item is the same as the one you refer to.
to make the ping show to the owner of the using unit, u have to convert owner of trigger unit to a player group so that you can use it in the action.
06-30-2006, 09:15 PM#11
Azhag
If someone could help me with that trigger in GUI that would be great.

It has been along time since I have used the World Editor, so I have forgotten a lot of the triggers I used to know. Thus, I have more questions. Haha.

First, How do I make it so a peasant can only attack a certain type of tree... i.e. Ashenvele Canopy Tree, and not Ashenvele Tree Wall. The reason is because I want the peasant to be able to attack only those trees for a quest.

Second, I know this sounds dumb, but how do I make it so when the peasant kills the tree, it adds an item to his inventory. For your information, the peasant only has 1 inventory slot, so he can't have more then 1 item at a time.
It has been awhile since I have used the World Editor, and like I said, I am really rusty at it. So thank you for your patience.

Any more questions I have I will ask. Thank you.
07-03-2006, 01:06 AM#12
Azhag
Anyone?
07-03-2006, 08:38 AM#13
The)TideHunter(
You cant ping the minimap a colour for 1 player in GUI, you need to use GetLocalPlayer().

To attack only 1 tree:

Trigger:
Cant attack tree
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Destructible-type of (Target destructible of issued order)) Equal to 'Your Tree type'
Collapse Actions
Unit - Order (Ordered unit) to Stop
Game - Display to (All players) the text: You cant attack that type of tree.

and for the add item:

Trigger:
Give Item
Collapse Events
Destructible - A destructible within (Playable map area) dies
Collapse Conditions
(Destructible-type of (Dying destructible)) Equal to 'Your Type of Tree'
Collapse Actions
Hero - Create 'Your Item' and give it to (Triggering unit)
07-03-2006, 07:41 PM#14
Azhag
The)TideHunter(, the trigger that gives an item to the killing unit of the destructible doesn't work. There was no unit specified in that trigger, to have (Triggering Unit).

Also, unfortunatly I am unskilled at all with JASS, and do not know how to work the pinging of the minimap in JASS. I really need to know this trigger because it is a big part in my map.
07-03-2006, 07:52 PM#15
[niro]
To ping for the player that owns the unit that is using the item:


Trigger:
Item
Collapse Events
Unit - A unit Uses an item
Collapse Conditions
(Owner of (Hero manipulating item)) Equal to Player 1 (Red)
(Item-type of (Item being manipulated)) Equal to Tome of Agility
Collapse Actions
Cinematic - Ping minimap for Player Group - Player 1 (Red) at (Center of (Playable map area)) for 1.00 seconds, using a Simple ping of color (100.00%, 100.00%, 100.00%)


The only draw back for this is that, you have to create a version of this trigger for every player you want the effect to work for.

The only way to make a universal trigger is to use jass