HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Some unit/random help plz

01-04-2007, 01:26 AM#1
Feroc1ty
Ok first question may be simple but i didnt even want to try to open up editor for.

How do i make it when hero has an item in his inventory he does NOT receive bonuses from the item, but another unit carries it, the HERO HIMSELF gets the bonuses.

And second question, how do i create a dauble right click item function so i can do something with the item being manipulated.
01-04-2007, 02:11 AM#2
Zandose
1. You'd need to trigger it. Give the item no effects then use abilities to increase the units stats. You can hide the abilities in a spellbook and disable the spellbook so the player can't see the abilities but still get the effects of the abilities.

2. Give the item a blank abilities (much as channel) and use triggers to register the number of times the ability is used. Then trigger a effect.
01-04-2007, 02:21 AM#3
Feroc1ty
i dont think you understand me, i said dauble right click.
How would the ability work if you right clicked an item, anyways you were no help at all. thx for trying.
01-04-2007, 02:34 AM#4
Archmage Owenalacaster
Quote:
Originally Posted by Jokes-On-You
And second question, how do i create a dauble right click item function so i can do something with the item being manipulated.

Zandose was correct, you misunderstood. You shall need a trigger which detects the item-ability's use, in essense to detect if it is used twice within a very short time (a second perhaps). The item's ability must be devoid of function like a instant-effect Channel-based ability. The trigger which detects only one use of the ability within a second produces one effect, the trigger which detects two uses of the ability within a second produces the second effect. Need I clarify further?
01-04-2007, 02:35 AM#5
Zandose
@Archmage Owenalacaster
Jokes-On-You's right. He asked how to make a Double Right-Click. The method I was only works for left clicks.
01-04-2007, 03:06 AM#6
Archmage Owenalacaster
Ah, yes, of course. In that case, to my knowledge, the effect Joke desires cannot be produced and shall have to content itself with left-clicking.
01-04-2007, 03:19 AM#7
Zandose
Joke are you trying to combind items or stack pots?
01-04-2007, 03:57 AM#8
Feroc1ty
I saw an item system, in which if you dauble right click, you can put the item in a bank like thing, which i know how to do everything BUT the dauble right click part, anyhow how do you detect if any player is drag droping any items, if i know that i will know if the player dauble right clicked.
01-04-2007, 04:03 AM#9
Pheonix-IV
It is doable, you detect if the item was dropped into teh same slot as it was taken out of or something. Check one of the Advanced Inventory systems, most of them incorperate this.
01-04-2007, 05:07 AM#10
Feroc1ty
Yes, but the problem is that i dont know how to read/use jass, and most systems use jass :(
01-04-2007, 09:15 AM#11
The)TideHunter(
Just check when a unit receives a item, if its the item you want to be banked, run a timer, if the unit receives the item again before the timer expires, do whatever you want it to do, the timer just checks that its double rightclicking.
01-04-2007, 12:14 PM#12
BertTheJasser
InvX will solve all your prolems...

Or:

Double rightclick: Detect via order detection if the item is dropped in a small period of time (<0.3) in the same slot as it was before.
Specififc bonuses: Just check when a unit gets an item and add via bonusmod some bonuses to the unit, and remove them when the unit loses the item (losing an item includes selling an item, so no further triggerevent is needed for that)
01-04-2007, 06:40 PM#13
Feroc1ty
thanks bert + rep.