HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do you?

04-03-2003, 03:09 AM#1
Elfdude
I'm reworking a map(god's land) and I want to make it so when I use one of the god's powers(such as kill unit) stuff like lightning bolt to hit target unit and a soun of a lightning bolt to play... also I on bigger effects like plague I wanted stuff like blight or rain or something of the effect to show up... How do you do this?
04-03-2003, 03:41 AM#2
sheepofdoom
You can use the "Unit is issued an order targeting a point/unit/with no target" set of conditions to determine when the spell is cast and then use triggers to set the desired effect:

For example:

Event "God_Hero is issued an order targeting a unit"
//Where god_hero is your hero

Action "Order is equal to <name of order>"
//put the name of your order here. This is defined in <race>abilityfunc.txt or you can find it using a trigger - see after this.

Event
Put your events here, for example attach special effect, play sound etc.

-----------
To work out the orders name without opening the txt files you can do this:

Event: God_Hero is issued an order targetting a unit
Action: Game Display text to player 1 "order was " + string(convert order to string).

You can make the action using the concatinate command. Then in the map whenever you issue an order targetting a unit it will display the order name. You can replace the "targeting" unit with "targeting a point" etc to see the other command names.

Good luck,
If you aren't sure of what I mean feel free to ask.

Hope this helps,
SheepOfDoom
04-04-2003, 01:13 AM#3
Elfdude
Errm this has nothing to do with a hero casting a spell... what it is circles of power that when my dudes walk onto them it triggers an event directed at the players who's specific circles have my helpers on them... just wanted to know how to add cool effects to the exsisting trigger..
04-04-2003, 01:26 AM#4
Myster Mystery
I believe what you are looking for is Special Effect- Create special effect for the pretty lightening. For the sounds, you would have to go into the sound editor, find the sound you want, right click on it and tell it to "use internal sound" then, in your trigger, use Sound- play sound.
04-04-2003, 03:37 AM#5
Elfdude
THANKS!

Another question... how do you use models from other maps? like I've seen some custom models on some maps that are really cool... but how do you use them?