wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 11-29-2016, 01:34 PM   #1
Tallanar
User
 
Join Date: Apr 2014
Posts: 6

Tallanar has little to show at this moment (0)

Default Ping minimap for items problem.

Hello, it's been a long time since I played with Warcraft 3 WE, now I wanted to refresh it and I'm creating a light custom campaign for FT, but I have small problem with trigger wich pings
minimap for placed items on map.

Let's start with detailed explanation.

I placed on map 5 books of inteligence +2 wich are objects to bonus quest to find them.
I created trigger wich pings minimap where they placed. Basicly trigger works quite perfectly, but when Hero picks book and trigger starts again (time cycled trigger) minimap pings in point where book was picked and there is no item.

Take a look at trigger:
Trigger:
Collapse Events
Time - Every 80 seconds of game
Collapse Conditions
BonusQuest is enabled equals true
Collapse Actions
Set ItemPositions = (playable map area)
Item - Pick Every Item in ItemPositions and do (Actions)
loop
if (Item-Type of (picked item)) equals to Book Of Inteligence +2
then
Cinematic - Ping Minimap for (HumPlayer) at (ItemPositions) for 3.00 seconds using (simple) ping of color (59%, 80%, 80%)
custom script: call RemoveLocation(udg_ItemPositions)
else
Do Nothing

Sorry about indents, I didn't figured out how to use it properly.
Tallanar is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 11-29-2016, 03:36 PM   #2
Rao Dao Zao
www.raodaozao.net
 
Rao Dao Zao's Avatar


MDL & Resource Moderator
 
Join Date: Aug 2003
Posts: 2,511

Submissions (27)

Rao Dao Zao has a brilliant future (822)Rao Dao Zao has a brilliant future (822)Rao Dao Zao has a brilliant future (822)Rao Dao Zao has a brilliant future (822)Rao Dao Zao has a brilliant future (822)Rao Dao Zao has a brilliant future (822)Rao Dao Zao has a brilliant future (822)

Approved Map: When the Freedom Slips Away

Send a message via MSN to Rao Dao Zao
Default

Items that are automatically used don't die properly, they still kind of exist (see the shadows that reapper when you load a saved game). When the hero uses/acquires the item, make sure you explicitly destroy it -- can't remember off the top of my head, but there should be a Remove Item trigger.
__________________
Rao Dao Zao is offline   Reply With Quote
Old 11-29-2016, 06:13 PM   #3
Tallanar
User
 
Join Date: Apr 2014
Posts: 6

Tallanar has little to show at this moment (0)

Default

Quote:
Originally Posted by Rao Dao Zao
Items that are automatically used don't die properly, they still kind of exist (see the shadows that reapper when you load a saved game). When the hero uses/acquires the item, make sure you explicitly destroy it -- can't remember off the top of my head, but there should be a Remove Item trigger.

Yes! There is such trigger to remove item from game, but it didn't work, map still pings at its position, but you gave me an idea to solve my problem.
I changed condition when picking items and I added to check item's life percentage and when I pick item, I set it life to 0% and in condition I added condition when pinging (greater than 1%)

Now trigger looks like this:
Trigger:
Set ItemPositions = (playable map area)
Item - Pick Every Item in ItemPositions and do (Actions)
loop
if (Item-Type of (picked item)) equals to Book Of Inteligence +2 and ((Current life of (Picked Item) Greater or Equal 1.00)
then
Cinematic - Ping Minimap for (HumPlayer) at (ItemPositions) for 3.00 seconds using (simple) ping of color (59%, 80%, 80%)
custom script: call RemoveLocation(udg_ItemPositions)
else
Do Nothing

And This works exacly as I desired.

Last edited by Tallanar : 11-29-2016 at 06:14 PM.
Tallanar is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 04:53 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services