Staredit Network

Staredit Network -> UMS Assistance -> Couple of questions...
Report, edit, etc...Posted by kholdstare on 2006-07-22 at 11:46:48
Hello I have a couple of questions I would like to get answers to:

Q1: How do I make a unit cast a spell automatically (with triggers, of course)

Q2: How do I make enemy units drop items or "magic find" whenever I kill them.

Don't be shy to answer tongue.gif Any help will be appreciated. Thanks.
Report, edit, etc...Posted by Mp)7-7 on 2006-07-22 at 11:53:23
For question one idk, but question 2 you could have a location follow that specific unit, when they are killed create gem at location with spell connected to it, then you can see where it is they died and when you enter location you can pick it up again!
Report, edit, etc...Posted by StarmanJr. on 2006-07-22 at 14:29:23
For Q2, you could also use exact kill scores to detect which unit a player killed and then have a text saying you found some magic item. The problem with this method is that it doesn't really work for units you killed by splash. The follow location thingy stated by 7-7 COULD work, but it wouldn't be ideal for a large group of the same enemy unit.

As for Q1, I don't know if you're referring to unit spells (ie Defiler using Dark Swarm, H. Templar using Psi Storm) or some unique trigger spells, which you'd just use conditions that would allow the spell to auto cast.
Report, edit, etc...Posted by Electroid on 2006-07-22 at 17:08:57
QUOTE
Q1: How do I make a unit cast a spell automatically (with triggers, of course)


make roughly a 6x6 location follow your unit.

[trigger 1]
conditions:
always
actions:
move location "follow" on unit at anywhere
preserve trigger

[trigger 1]
conditions:
computer/enemy player brings at least 1 unit to location "follow"
actions:
cast spell
preserve trigger

QUOTE
Q2: How do I make enemy units drop items or "magic find" whenever I kill them.


QUOTE
you could have a location follow that specific unit, when they are killed create gem at location with spell connected to it, then you can see where it is they died and when you enter location you can pick it up again!


obviously, if you want items to drop from a mass number of enemies, this triggering is out of the question. however, id recomend if you just want the main bosses to drop items, such as keys/stats/weapons.

QUOTE
you could also use exact kill scores to detect which unit a player killed and then have a text saying you found some magic item.


id recommend this if you want to gain items from a mass number of enemy units. they don't literaly have to drop the item for you to gain it, you could just use death counters/switches to count/execute the use of the items.
Report, edit, etc...Posted by Kenoli on 2006-07-22 at 18:11:38
QUOTE(kholdstare)
How do I make a unit cast a spell automatically
What spell?
QUOTE(kholdstare)
How do I make enemy units drop items or "magic find" whenever I kill them.
Sounds like Kills to Cash to me.
Report, edit, etc...Posted by DT_Battlekruser on 2006-07-23 at 03:28:05
Well, it's much more complicated if he wants a unit placed at the location of the unit dying.
Report, edit, etc...Posted by Rantent on 2006-07-23 at 06:28:47
I would suggest using a mobile battle system for the appearance of items being dropped when you kill a unit.

Basically when a unit get within range of your hero, center a locaiton on it, with this location constantly centered on it from there on out, use it to determine whether or not the unit is alive. If its dead, make some random switches that make whatever powerup you wish appear in its place.
Report, edit, etc...Posted by kholdstare on 2006-07-23 at 09:00:52
Ok well, lets say I had a shuttle spellcasting system and to cast psionic storm i would unload the High Templar. So what triigger would I use for JUST the casting of the spell (not the unloading and stuff). Hope that clears things up for you guys.
Report, edit, etc...Posted by Sicarul on 2006-07-23 at 10:10:25
QUOTE(http://www.staredit.net/index.php?tutorial=175)
- Psionic Storm -
*High Templars will counter attack with Psi Storm to hit any unit that is attacking it (includes hero)
*They will also run over and hit nearby units with a psi storm (this is usually provoked by certain units or usually just a mass of them) They only seem to do this once.


I guess that's what you are looking for... though to make it get attacked you may need some triggers and exact timing to teleport it and some stuff... if that's not what you were looking for then nvm.
Report, edit, etc...Posted by -bilal92- on 2006-07-23 at 19:32:54
for #1 if ur talking but computers then set ai script and hope that they will use spell, remember to use 'race' expansion
-zerg-terran-protoss.
Report, edit, etc...Posted by kholdstare on 2006-07-23 at 19:48:21
Wow I really have to add detail here. Ok brain its time to work. For Q1 I'll have a location always following the hero 'cause I'm making an RPG. Then I'll have a shuttle on a location and when I drop the unit (in this case a high templar) the trigger will activate and automatically cast a psionic storm on the location following my hero. For Q2 it's going to create an item (at random) on the spot where the enemy was massacred (like that word). Now that I have added alot of detail, can someone give me the answer I am looking for?
EDIT: http://www.staredit.net/index.php?tutorial=43 link for the Shuttle Spell Casting System.
Report, edit, etc...Posted by Kenoli on 2006-07-24 at 03:14:05
I just made this map. It shows how to make a psionic storm spell.
(Use the civilian to activate the spell)
[attachmentid=20252]
Report, edit, etc...Posted by kholdstare on 2006-07-24 at 08:25:20
Yay! Thanks Kenoli! *presents with certificate*
EDIT: Can you explain how it works?
Report, edit, etc...Posted by MoonlighTurtle on 2006-07-24 at 14:59:17
All it does is create a templar for the computer, and an enemy unit over the templar. The energy settings for psionic storm is 1 to make sure the templar has energy, and psionic storm is researched by default.

Here are the basic actions:
Next Page (1)