| 06-29-2006, 07:05 PM | #1 |
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 |
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 |
do you mean something like this Trigger: or |
| 06-29-2006, 07:34 PM | #4 |
i think he wanted Cinematic - Ping Minimap With Color for the action... |
| 06-29-2006, 07:53 PM | #5 |
yeah pipedream explained it long ago... for your information: Cinematic - Ping Minimap With Color = PingMinimapEx |
| 06-29-2006, 08:22 PM | #6 |
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 | |
Quote:
you welcome, feel free to add rep if you think i helped you ![]() |
| 06-29-2006, 08:40 PM | #8 |
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 |
JASS:if(IsHeroUnitId(GetUnitTypeId(GetTriggerUnit()))) then if (GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit())) then call PingMinimapEx(...) endif endif |
| 06-29-2006, 09:00 PM | #10 |
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 |
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 |
Anyone? |
| 07-03-2006, 08:38 AM | #13 |
You cant ping the minimap a colour for 1 player in GUI, you need to use GetLocalPlayer(). To attack only 1 tree: Trigger: and for the add item: |
| 07-03-2006, 07:41 PM | #14 |
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 |
To ping for the player that owns the unit that is using the item: Trigger: 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 |
