Register for free, and make this box disappear!

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


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers 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. Whatever your game interest may be, you'll find information here where people realize that games are more than just poker online.


Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Blizzard Gaming Forums > Warcraft > Warcraft General > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 08-19-2005, 05:48 AM   #1 (permalink)
BattleForums Junior Member
 
the_playa6916's Avatar
 
Join Date: Jul 2004
Location: CaNaDa
Age: 19
Posts: 54
Question on Item Restrictions..

Hey i was wondering how to not allow someone to pick up 2 weapons, or 2 armors, etc. i know the actions, just don't know how 2 specify it in Events/Conditions, since there is no "Weapon" item-type, or "Armor" item-type...

And another thing about items, if yu attach an attachment to lets say a right hand, and you actually do pick up 2 items that attach to the right hand, would this cause the game 2 crash after a while of using it? cuz mine seems to do that sometimes if i do that... Might be something else tho.

Thx alot,
PlaYa
__________________
... Playa's Up to: An RPG that'll actually finish :bouncy
the_playa6916 is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 08-20-2005, 08:44 AM   #2 (permalink)
BattleForums Addict
 
Icedragon's Avatar
 
Join Date: Aug 2002
Location: The Swiming Pools
Age: 20
Posts: 834
make your armors... permenants and your weapons something else.. then you can sort them like that...

I dont know much about attachments cause i havnt used them in any of my maps... its probaly not that though. its probably a trigger that causes and infinite loop or something
__________________
I Will Rise from the Depths and be HEARD!
Icedragon is offline   Reply With Quote
Old 08-21-2005, 10:30 AM   #3 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
Quote:
Originally Posted by the_playa6916
Hey i was wondering how to not allow someone to pick up 2 weapons, or 2 armors, etc. i know the actions, just don't know how 2 specify it in Events/Conditions, since there is no "Weapon" item-type, or "Armor" item-type...

And another thing about items, if yu attach an attachment to lets say a right hand, and you actually do pick up 2 items that attach to the right hand, would this cause the game 2 crash after a while of using it? cuz mine seems to do that sometimes if i do that... Might be something else tho.

Thx alot,
PlaYa
The easiest way is to make the items you pick up 'Dummy items', that use triggers when that item is picked up.

For example, you could make an item 'Gloves of Haste1' as a dummy item and rename it later. Gloves of Haste1 would make way for Gloves of Haste.

Then:

Event:
Hero - A hero acquires [Gloves of Haste1]

Action:
If - Conditions:
Hero - Hero has [Gloves of Haste]
Then:
Hero - Drop [Gloves of Haste1]
Else:
Hero - Create [Gloves of Haste] for [Hero manipulating item]
Hero - Remove [Gloves of Haste1] from [Hero manipulating item]
Problem is, it's hard, because you cannot check each inventory slot for heroes.*
__________________
* IM IN UR WIKI RVRTING UR EDITS

x42bn6 is offline   Reply With Quote
Old 08-21-2005, 07:37 PM   #4 (permalink)
BattleForums Junior Member
 
the_playa6916's Avatar
 
Join Date: Jul 2004
Location: CaNaDa
Age: 19
Posts: 54
Lol Icedragon that's a simple solution, *Doh* Why dint i think of that -_-

Yah X42 i would use that but i'd have to use "Hero - Hero has [item]" for each and every item that exists in the specific group (Weapons, Armor, Shields, Etc)...
__________________
... Playa's Up to: An RPG that'll actually finish :bouncy
the_playa6916 is offline   Reply With Quote
Old 08-24-2005, 03:51 PM   #5 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
Quote:
Originally Posted by the_playa6916
Lol Icedragon that's a simple solution, *Doh* Why dint i think of that -_-

Yah X42 i would use that but i'd have to use "Hero - Hero has [item]" for each and every item that exists in the specific group (Weapons, Armor, Shields, Etc)...
I'm thinking of a way... If you could assign every single 'left' item to a variable in an array, and the same for the right, you could then use a For each Integer A from [start] to [end] action to check each item. You could use dummy variables as a condition...

Set left[0] = [Left Glove of Haste]
Set left[1] = [Left Glove of Slow]
... Must do beforehand, like Melee Initialization

For each Integer A from [0] to [length of left] Do Multiple actions
If [[left[Integer A] = [Manipulating Item (?)]] Then [Set [isLeft]=[true]] Else [Do Nothing]
If - Conditions:
[[isLeft] = [true]]
Then:
[Unit - Order [Hero Manipulating Item] to drop [Gloves of Haste1]]
Else:
Hero - Create [Gloves of Haste] for [Hero manipulating item]
Hero - Remove [Gloves of Haste1] from [Hero manipulating item]
Do this for each left and right item.*
__________________
* IM IN UR WIKI RVRTING UR EDITS

x42bn6 is offline   Reply With Quote
Old 09-11-2005, 07:08 PM   #6 (permalink)
BattleForums Junior Member
 
the_playa6916's Avatar
 
Join Date: Jul 2004
Location: CaNaDa
Age: 19
Posts: 54
oh man... x42 is right, if you pick up an item, you can't check the rest of the inventory to see if the item exists there >.< (because the item yu picked up is now part of your inventory)

can you count the number of items of a certain class in your inventory somehow? or does anyone have a solution for only letting you pick up 1 item of a certain class?

--> it wud be better if this cud be done without having a dummy for each item!
__________________
... Playa's Up to: An RPG that'll actually finish :bouncy

Last edited by the_playa6916; 09-11-2005 at 07:13 PM.
the_playa6916 is offline   Reply With Quote
Old 09-12-2005, 10:36 AM   #7 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
Quote:
Originally Posted by the_playa6916
oh man... x42 is right, if you pick up an item, you can't check the rest of the inventory to see if the item exists there >.< (because the item yu picked up is now part of your inventory)

can you count the number of items of a certain class in your inventory somehow? or does anyone have a solution for only letting you pick up 1 item of a certain class?

--> it wud be better if this cud be done without having a dummy for each item!
Without the ability to check all the inventory, it's very very hard. You have to use triggers to keep track of what items are in the inventory, when they acquire, drop or change owner. It's very tedious.*
__________________
* IM IN UR WIKI RVRTING UR EDITS

x42bn6 is offline   Reply With Quote
Old 09-13-2005, 12:37 AM   #8 (permalink)
I still play games
 
Octopor's Avatar
 
Join Date: Nov 2003
Posts: 1,725
1)Go to clan eota on East.
2)Visit the website.
3)Ask for the trigger they used.
(In the map they make it so that you can't have more than one orb, glove or armor thingy.)
__________________
Quote:
My perception crit, now I can see why kids love Cinnamon Toast Crunch cereal.
Octopor is offline   Reply With Quote
Old 10-18-2005, 05:06 PM   #9 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,118
By trigger, simply check for the hero if he has 2 of whatever. Then either remove it and add money to the gold supply if it was bought, or cause him to drop it.
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« How i use Regions? | Spell Menu thing »

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 +1. The time now is 12:51 PM.



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