Get rid fo this ad! Click here to register for your free account.

Welcome to the BF Forums! Register Now, It's Free!

Welcome to the BF Forums; your source for the latest and greatest video game news, strategies, discussions, and resources. Join over 60,000 like-minded gamers from around the world to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.

Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
Register for free today, and these ads will disappear!
BattleForums.com Forums > Major Games > Warcraft > Warcraft Maps and Modifications

##Click Here## | BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 12-14-2006, 04:53 AM   #1 (permalink)
BattleForums Newbie
 
Join Date: Dec 2006
Posts: 11
Item replacement triggers

I need a trigger that if the user has item1, item2, item3 in his invent, those items would be removed and replaced with item4.

Can someone provide me with the codes and an example?
Hsinker is offline   Reply With Quote
Alt Heute
Advertising

Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
   
Old 12-25-2006, 06:20 PM   #2 (permalink)
Registered User
 
Join Date: Jul 2003
Posts: 3,782
E: A unit acquires an item
c: item = item 1 and item = item 2 and item = item 3 (if this doesnt wrk do: E: every 1 second of game time C: Hero has item carrid by Hero of type ite 1, -||- item 2 , 3 etc.

A:Item drop and remove last dropped item for each of them.
Create item and give to (unit)
You can add all the abilities of the 3 items to this 1 with abilities without icons they will be added to he hero not the item but you can lawyas use conditions when thee abilities to be removed.
None293823 is offline   Reply With Quote
Old 12-26-2006, 07:36 PM   #3 (permalink)
I still play games
 
Octopor's Avatar
 
Join Date: Nov 2003
Posts: 1,699
I posted this in another thread involving combining items, hope it helps. (This trigger has been checked and does work.)

Quote:
Originally Posted by Octopor
Events
-Unit - A unit Acquires an item
Conditions
-n/a
Actions
-If (All Conditions are True) then do (Then Actions) else do (Else Actions)
--If - Conditions
---And - All (Conditions) are true
----Conditions
-----((Hero manipulating item) has an item of type item1) Equal to True
-----((Hero manipulating item) has an item of type item2) Equal to True
--Then - Actions
-----Item - Remove (Item carried by (Hero manipulating item) of type item1)
-----Item - Remove (Item carried by (Hero manipulating item) of type item2)
-----Hero - Create item3 and give it to (Hero manipulating item)
-----Special Effect - Create a special effect attached to the overhead of (Hero manipulating item) using Abilities\Spells\Items\AIem\AIemTarget.mdl
--Else - Actions
-----Do nothing

Item 1 and 2 represent the items that you would be combining. Item 3 represents the item that you would get as a result of the combination.
Just another condition for the third item and another action to remove that item and you're done.
__________________
Quote:
My perception crit, now I can see why kids love Cinnamon Toast Crunch cereal.
Octopor is online now   Reply With Quote
 
Reply

« How to create and start timers? | Travern »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 04:31 PM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0