HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Beer

11-12-2003, 04:56 PM#1
Voi
I am trying to make a unit drunken when he drinks to much beer. This is only for player 1 but it is same for all:

Trigger: Beer 1

E - a unit uses an item
C - (item-type of (item being manipulated)) equal to Beer
A - if (all conditions are true) then do (then actions) else do (else actions)
~C - (owner of (hero manipulating item)) equal to player 1 (red)
~TA - set HP1Beers = (HP1Beers + 1)
~TA - if (all conditions are true) then do (then actions) else do (else actions)
~ ~C - HPBeers greater than or equal to 5
~ ~TA - unit - order Beer Caster 0111 <gen> to Neutral Pandaren Brewmaster - Drunken Haze (hero manipulating item)
~TA - set HP1BeerCDTime = 60 seconds

Trigger: Beer 2
E - every 1 second of game time
C - set HP1BeerCDTime = (HP1BeerCDTime - 1.00)
A - if (all conditions are true) then do (then actions) else do (else actions)
~C - And all (conditions) are true
~ ~C - HP1Beers not equal to 0
~ ~C - HP1BeerCDTime equal to 0
~TA - set HP1Beers = (HP1Beers - 1)
~TA - set HP1BeerCDTime = 60

I hope u read all this because I wasted really much time and dont know whats wrong. This is some other information:
One invisible unit with this spells is placed in center of playable map area: Invulnerable, Unselectable (AIoc), Drunken
Haze-ability. Cast range on the Drunken Haze-ability is 99999 and the missile is <NONE> and the missile speed is 65000. It is called Beer Caster 0111.
11-12-2003, 05:02 PM#2
FlameThrower
Why dont you just make yourself an item with the same abilitys' you need...
11-12-2003, 05:03 PM#3
AllPainful
First off, what EXACTLY isn't working about it?

And FlameThrower has a good idea, you might be able to make the beer item cast "drunken haze" on the user, so there would be no need for the triggers.

Also Panto (post below me) has a good point, I believe there was a bug with units with aloc being given orders.

What about Vision? Did you make sure that unit can SEE the whole map? Can't cast on what it can't see... Also set its aquisition range to 0 (infinate) so that it can aquire a target on the whole map. And make sure it doesn't have an attack, other wise it would be attacking..

And another thing: Did you edit "Druken Haze" and make sure the "Allowed Targets" doesn't say "non-hero"

Also, your invisible caster, who owns it? Neutral Hostile? If so then you might want to make sure the "Allowed Targets" doesn't have "friendly" and not "enemy" checked.

If its owned by "Neutral Passive" or an allied player? then you should make sure the "Allowed Targets" doesn't have "enemy" and not "friendly" checked.

My suggestion: Remove the aloc ability from the unit, make the units scaling and selection circle all equal to .01 and it collision = 0, then give it "Ghost" and "Permanent Invisibility" that way the player can't select it unless they have something close that can see invisible, and with the scaling and selection circle at .01 the unit would still be invisible.

Are you trying to have the beers wear off after 60 seconds? if so shouldn't the end be:


~TA - set HP1Beers = (HP1Beers - 1)
~TA - set HP1BeerCDTime = 60
11-12-2003, 05:06 PM#4
Panto
Can units with the Aloc ability be ordered to do something?
11-12-2003, 05:12 PM#5
Voi
I tested to delete AIoc ability and it still dont work. And whats not working is: Nothing is casted on the hero and targets is: Hero, ground, air, organic. The reason to why I dont have the drunken ability on the item is because then I need a target and this is an ability without target.
11-12-2003, 07:57 PM#6
Spinally
this might seen like i think your a retard but it happened to me.You didnt learn your Drunken Haze hero the Drunken haze ability.So he cant cast it.If thats not it...Im ashamed
11-12-2003, 08:00 PM#7
Eriond
I made a beer trigger! I know exactly how to work it, you're copying my idea :nono:

Jk :ggani:

You make two items, beer 1 and beer 2.

Beer 1 is the one that the user sees. When he uses it, it does nothing but it trips a tirgger. The trigger adds beer 2 which has the item ability drunken haze (you have to create this, no mana cost/cooldown). Then have Hero manipulating item to use beer2 on hero manipulating item. Voila!
That's how you get the hero drunk. You just have to do an If/Then/Else condition using an intedger variable above that.
11-12-2003, 09:29 PM#8
Voi
I have learned the unit the spell, then u are ashamed (haha) and I want something more complecated than ur way. It is more realistic if the hero needs to w8 60 seconds to get 1 lower drunk-level, and when the hero laready is drunk he will be drunk again if it doesnt stop drink in 2 minutes etc...or maybe I just dont understand what I mean... :P

Edit: That means you will be drunken when u drink to much but othervise it only heals u.
11-12-2003, 09:35 PM#9
AllPainful
I added this in a EDIT of my above post, and don't know if you saw it (you didn't mention it.).
Quote:
What about Vision? Did you make sure that unit can SEE the whole map? Can't cast on what it can't see... Also set its aquisition range to 0 (infinate) so that it can aquire a target on the whole map. And make sure it doesn't have an attack, other wise it would be attacking..
You can't increase the sight range of a unit (normally) to encompass the whole map, the the unit can cast the spell anywhere its owner can see, so if you gave it to neutral hostile, then I suggest you make a visibility modifier that makes it so neutral hostile can see the entire map. Or what ever player you gave control of the unit to. And see if it works then.
11-13-2003, 01:01 PM#10
Voi
Smart, I forgot to give it sight range, I will test it now, it is neutral passive and don't have attack...I add a visibility modifier there...
11-13-2003, 01:20 PM#11
Voi
Still dont work...
11-13-2003, 03:17 PM#12
Silver_Lynx
Quote:
Originally posted by Eriond

You make two items, beer 1 and beer 2.

Beer 1 is the one that the user sees. When he uses it, it does nothing but it trips a tirgger. The trigger adds beer 2 which has the item ability drunken haze (you have to create this, no mana cost/cooldown). Then have Hero manipulating item to use beer2 on hero manipulating item. Voila!
That's how you get the hero drunk. You just have to do an If/Then/Else condition using an intedger variable above that.


You can still use this idea even if you want to make the person last longer to be drunk for each beer they've drank. Do something like this.

When beer 1 is drank have it trip Beer 2 which makes the caster drunk and increases his 'amount drank' and trip a Beer 3 trigger

Beer 3
C - Make sure this trigger isn't already running (with variables n' such)
C - Unit's BeersDrank <= Unit's strength/5 (or sumthin like that)
A - Loop (until Unit's BeersDrank < Unit's Strength/5)
A - Wait 60 seconds (or however long you think it should take to
wear a beer off)
A - Unit's BeersDrank = Unit's [BeersDrank - 1]
11-13-2003, 04:57 PM#13
Voi
How does beer 2 work? The Drunken Haze ability needs a target and it will be discovered.