HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help me please

03-25-2007, 05:30 PM#1
lome
I need to know how to do these triggers. GUI is possible.
1. Every 3 seconds necromancer revives any dead ghouls around him.
2. Every 5 seconds a necromancer appears and does the same as above.
3. 50% chance Remove all gold from player 1 and when i kill a gnoll theif i get it back. after 5 minutes this is impossible.
03-25-2007, 05:52 PM#2
darkwulfv
Well for the first 1, just make a periodic trigger that goes off every 3 seconds, then make a unit group of all the necromancers (this is assuming you want every necromancer to do this) and have them cast your revival spell... but if you want to make the units that come back ghouls, whether the corpse was ghouls or not, then make the summoned unit a ghoul. Otherwise, I don't know a way to check that the raised unit was/is a ghoul.

For the second one, make another periodic trigger, 5 seconds, and make the trigger create a necromancer at wherever you want., If you want it to revive the ghouls instantly upon birth, just tell it to in the trigger. Otherwise, it'll be picked up after the next run of the first trigger.

Dunno about the 3rd off the top of my head.

I can give these to you if you need them, but if you can do them I'd rather not.

EDIT: I'm bored, so I made the first 2 triggers for you.
Trigger:
Ghoul Revive
Collapse Events
Time - Every 5.00 seconds of game time
Conditions
Collapse Actions
Custom script: local group udg_Nec_Group
Set Nec_Group = (Units of type Necromancer)
Collapse Unit Group - Pick every unit in Nec_Group and do (Actions)
Collapse Loop - Actions
Unit - Order (Picked unit) to Undead Necromancer - Raise Dead
Custom script: call DestroyGroup(udg_Nec_Group)
Custom script: set udg_Nec_Group = null
Trigger:
Necromancer Create
Collapse Events
Time - Every 5.00 seconds of game time
Conditions
Collapse Actions
Unit - Create 1 Necromancer for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing (270.0) degrees
Unit - Order (Last created unit) to Undead Necromancer - Raise Dead
You can remove the last action in Trigger #2 if you don't want them to cast their revival spell upon birth.
03-25-2007, 08:13 PM#3
Pyrogasm
You could raise only ghouls, but you'd have to trigger the entire revival spell.
03-25-2007, 09:55 PM#4
darkwulfv
Quote:
You could raise only ghouls, but you'd have to trigger the entire revival spell.
AKA hell =p. He didn't specify, so what I gave should work fine unless he says otherwise.