(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 09-11-2008, 01:25 PM   #1 (permalink)
 
raid1000's Avatar

Chuck Norris!
 
Join Date: May 2008
Posts: 358

raid1000 has a spectacular aura about (140)raid1000 has a spectacular aura about (140)raid1000 has a spectacular aura about (140)raid1000 has a spectacular aura about (140)


Question items

ok so i have a item of class "artefact" in my inventory and if i pick up a nother one of the same class i want my hero to automaticaly drop it and then a text message pops up saying "u can hold only 1 artefact". How do i do that?
__________________
raid1000 is offline   Reply With Quote
Old 09-11-2008, 01:36 PM   #2 (permalink)
 
Restor's Avatar

It's all part of the plan
 
Join Date: Mar 2005
Posts: 327

Restor has little to show at this moment (31)Restor has little to show at this moment (31)Restor has little to show at this moment (31)Restor has little to show at this moment (31)


you can do it with boolean variable.

If hero picked item and item type is artefact, set VariableX=true

and if hero picked item, make If/then/else. if X=true, then drop picked item and game text blabla, Else pick item
__________________
Universal Declaration of Human Rights-10th December 1948

Article 19
Everyone has the right to freedom of opinion and expression; this right includes freedom to hold opinions without interference and to seek, receive and impart information and ideas through any media and regardless of frontiers.

I sence EpicFail somewhere here
Restor is offline   Reply With Quote
Old 09-11-2008, 01:40 PM   #3 (permalink)
 
Vegavak's Avatar

¹²³ ¹²³ ¹²³ ¹²³
 
Join Date: Mar 2006
Posts: 666

Vegavak is on a distinguished road (65)Vegavak is on a distinguished road (65)


Don't forget to make a boolean for each player. Or it will only allow one player to hold an artifact. Haha.
Vegavak is offline   Reply With Quote
Old 09-11-2008, 01:55 PM   #4 (permalink)
 
raid1000's Avatar

Chuck Norris!
 
Join Date: May 2008
Posts: 358

raid1000 has a spectacular aura about (140)raid1000 has a spectacular aura about (140)raid1000 has a spectacular aura about (140)raid1000 has a spectacular aura about (140)


is there a custom text for that variable so it wont leak (call_destroy blablabla)
__________________
raid1000 is offline   Reply With Quote
Old 09-11-2008, 01:58 PM   #5 (permalink)
 
Anarki's Avatar

Banned
 
Join Date: Mar 2007
Posts: 232

Anarki has little to show at this moment (13)Anarki has little to show at this moment (13)


Untitled Trigger 001
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
Then - Actions
Hero - Drop (Item being manipulated) from (Hero manipulating item)
Else - Actions

And booleans do not leak.
Anarki is offline   Reply With Quote
Old 09-11-2008, 02:51 PM   #6 (permalink)
 
Kingz's Avatar

Fate's Bullet
 
Join Date: Jun 2008
Posts: 296

Kingz has little to show at this moment (34)Kingz has little to show at this moment (34)Kingz has little to show at this moment (34)Kingz has little to show at this moment (34)


Look at this link:
http://www.hiveworkshop.com/forums/f...94/#post382694
or at this is you wish to have dual item system:
What you've all been waiting for...
__________________
Kingz is offline   Reply With Quote
Old 09-11-2008, 09:40 PM   #7 (permalink)
 
Airandius's Avatar

I arez flying! Whieee!
 
Join Date: Jun 2007
Posts: 781

Airandius is a jewel in the rough (192)Airandius is a jewel in the rough (192)


The best way in my opinion is using this tutorial. (That you could have found yourself.)
TaaZ's Item System

It's very simple to understand and I use it alot, though next time u should try looking it up in the tutorial section first. :P
Airandius is offline   Reply With Quote
Reply

Bookmarks

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Items - Combine items of same tipe(Very simple) Xiliger "Graveyard" 9 07-15-2008 02:53 PM
Items help!! ReDbEaN87 Project Recruitment 0 01-21-2008 07:13 AM
Items: A few questions about creeps and items please! JEK_Disturbed Map Development 2 05-24-2006 11:32 AM
Are these items possible? Fulla Triggers & Scripts 2 09-01-2005 01:11 AM

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






Your link here 
Remortgages | Credit Counseling | Modded Xbox | Internet Advertising | Adverse Credit Remortgage
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle