• 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 Help

Status
Not open for further replies.
Level 2
Joined
Aug 23, 2008
Messages
9
Hi,

I was wondering, how do i do Random triggers?

Ex: A set of 30 tips, and one is displayed randomly every 60s econds. I know how to to the timer, just not the random. Any help appreciated :D

Thanks
 
Level 2
Joined
Oct 9, 2006
Messages
17
  • First Trigger
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Tips[1] = Tip one
      • Set Tips[2] = Tip two
      • Set Tips[3] = Tip three
      • Set Tips[4] = Tip four
      • Set Tips[5] = Tip five
      • etc.
  • Second trigger
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Set Tips_Int = (Random integer number between 1 and 30)
      • Game - Display to (All players) the text: Tips[Tips_Int]
Make a string variable with an array
and make a integer variable
 
Level 2
Joined
Aug 23, 2008
Messages
9
Thanks Bloopers. Also do you know the trigger for Attack Spells?

Ex: A tower attacks ever 3 secs, with 1-1 damage, and it has a spell that is unusable by the user but when it attacks it casts that spell on the unit.

I know the Unit is Attacked

Condition - Attacked Unit = Player 1 red

Cant find the action that does this:

Action - Order Attacking Unit To Cast (spell) On Attacked Unit.

Thanks man :D
 
Level 2
Joined
Oct 9, 2006
Messages
17
Idk really know the spell cast trigger unless im using unlimited.

But is this a dmg spell? cause you can probably work around it.

and do u mean the attacked unit is gonna cast a spell on the attacking unit?
 

kj_

kj_

Level 5
Joined
Aug 1, 2008
Messages
134
Dakiato just add it like Fire Arrow ability of Priestess Of The Moon(Normal one)
Then set damage on it and add mana to the tower via.
Mana Maximum - <etc>
And Mana Initial Amount - (Must be same as Mana Maximum)
just remove mana cost of the fire arrow ability
 
Level 2
Joined
Aug 24, 2008
Messages
16
Jus Use A Simple GUI Trigger.

-Events-
A unit is attacked
-Conditions-
Attacking unit equals to <Tower>
-Actions-
Check The Default Spell U Edited. For Example U Edited Storm Bolt To Thunder Bolt. Its Main <Use Command> Wil Stil Be Storm Bolt.
So U Wil Use The Following:

Order <Tower> to <Storm Bolt> attacked unit.

Make Sure Tt The Tower Has The Spell U Wn To Cast.
 
Status
Not open for further replies.
Top