[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > World Editor Help Zone


World Editor Help Zone Ask general questions about World Editor features and use in this forum. If you need help fixing a trigger, please post it in Triggers & Scripts. Please review the forum rules before posting.

Closed Thread
 
Thread Tools
Old 12-07-2007, 01:25 PM   #1 (permalink)
Registered User EL-DarKo
User
 
Join Date: Dec 2007
Posts: 18
EL-DarKo is an unknown quantity at this point (0)
Item Help - Item Class Drop

Yo!

I have Searched the forum and i found NONE threads like this or i just dint search enough, who cares lets get to the point

How can i make a system which only allows a unit to carry one item class of each kind, so it can only carry 1 Artifact and 1 Permanent? only one type of class item in the inventory, so if it allready carrys a item of class: Artifact, and tries to pick up a new, the system will make the item being picked up to drop and displays a message.

Can Any Help? i neeed it!
EL-DarKo is offline  
Old 12-07-2007, 02:05 PM   #2 (permalink)
Registered User Godless
Chaoskrieger
 
Godless's Avatar
 
Join Date: Feb 2005
Posts: 214
Godless has little to show at this moment (31)Godless has little to show at this moment (31)Godless has little to show at this moment (31)Godless has little to show at this moment (31)
Basicly it would look like this.

Tricky Trigger
Events
Unit - A unit Acquires an item
Conditions
(Item-class of (Item being manipulated)) Equal to Artifact
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Artifact
(Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
Then - Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: You can carry only ...
Hero - Drop (Item being manipulated) from (Hero manipulating item)
Else - Actions
__________________


proud Member of an Multigamingclan
Godless is offline  
Old 12-07-2007, 04:50 PM   #3 (permalink)
Registered User EL-DarKo
User
 
Join Date: Dec 2007
Posts: 18
EL-DarKo is an unknown quantity at this point (0)
Thank You! i love you! it works! i hope this not only helped me but also other mappers! hehe, or maybe i am just a little nooby
EL-DarKo is offline  
Old 01-12-2008, 05:35 PM   #4 (permalink)
Registered User DrinkGreen
User
 
Join Date: Jan 2008
Posts: 4
DrinkGreen is an unknown quantity at this point (0)
Thanks! I've been searching for this on the internet for like an hour now!
DrinkGreen is offline  
Closed Thread

Bookmarks

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can hero take 1 item class?? Pitiun92 World Editor Help Zone 5 04-12-2008 09:48 PM
Drop item from destructable?? MonkIE cReW World Editor Help Zone 8 04-03-2008 10:42 PM
Drop Item On Shop ? Lar55a World Editor Help Zone 4 05-09-2007 09:40 AM
[JASS] Need help plz item class Novaicy Triggers & Scripts 3 05-12-2006 11:32 PM
item drop?? Viewsuhl Map Development 1 02-06-2006 09:19 AM

All times are GMT. The time now is 10:04 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle