• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Unit is drunked,alcochol sickness

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2007
Messages
154
I want to put beer in my map. I want it to work like that camera starts shaking around ur hero when he uses item "* Beer" (example Keniger Beer). I even tried using specific buff but its not exactly that what i want. Can u help me. Now it looks like that and it is not working.
  • Events
    • Map initialization
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (any_unit has buff Drunked ) equals YES
      • Than - Actions
        • Camera - Shake the camera for Player 1 (Red) with magnitude 3.00
      • Else - Actions
        • Do nothing
 
Level 7
Joined
Oct 8, 2007
Messages
154
  • Events:
  • Unit - A unit uses an item

ok but what is that unit? Last created unit? variable that equals unit?
Can u xplain me how to make it be whatever unit not only one specific unit ?

and 1 more what kind of comparison is that?

  • Conditions
    • Item Being manipulated equal to Beer

I mean its item comparison or item class comparison or just boolean comparison?

And I cant make item equal to beer it can be equal only tes or no. What to do now? How to make a Beer variable?
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
ok but what is that unit? Last created unit? variable that equals unit?
Can u xplain me how to make it be whatever unit not only one specific unit ?

and 1 more what kind of comparison is that?



I mean its item comparison or item class comparison or just boolean comparison?

And I cant make item equal to beer it can be equal only tes or no. What to do now? How to make a Beer variable?

Can't you either use your mind or look for it ? I mean... its right in front of your eyes.

You have this events: Specific unit, Player Owned units, Generic units, guess what you need...

And about the item... an item class is like "Campaign", "Charged", item types are item types like "Potion of healing", "Rod of Lightning", and an item is an specific item.
Now guess again what you need...
 
Status
Not open for further replies.
Top