| 01-09-2004, 05:32 PM | #1 |
I need to know is it possible to spawn a specific unit(type) in a point, using a spell targeting cursor when you type something in. I've figured out the word thingy, just don't know how to make the spell targetting thing spawning the unit. |
| 01-10-2004, 01:26 AM | #2 |
Give the player an invisible unit with the infernal ability with 99999999cast range. He can just use the spell himself then. |
| 01-10-2004, 01:37 AM | #3 |
I think using spell circle without selecting a unit is impossible :( |
| 01-10-2004, 01:38 PM | #4 |
I'm not so sure about that... th15's option sounds quite logical. If i make a invisible unit to the player and select it and make it instanty use the skill after its spawned, you should get the cursor thingy appear. And when that is used, it fires a spawn trigger. Unfortunately, I think I'm not skilled enough to do that (if its even possible) But with this you could create lotsa nice defence type maps (not TD's, i hate those nasty hellspawns...) Where there is first the all the terrain and enemy units ready to raid your keep, which you can defend by buying difrent specialized troops which are good against some specific units, and placing these units in strategic positions... Something like when you place the units, the game is paused, but when its unpaused the enemy units start to attack your keep from difrent directions. If you placed the specific units right, then you're fine, if badly, they run your keep over. I don't play much other types of games than singleplayer campaigns, so I don't know if there's something similar made earlier. Is there? |
| 01-10-2004, 02:28 PM | #5 |
Getting the spell targeting cursur is impossible. The best you could do is make an invisible unit with no selection scale, give it a targetting ability, and make sure that the player knows to cast it. |
| 01-10-2004, 05:34 PM | #6 |
It just popped to my mind that maybe it's easier done with dialog buttons? Yeah. I probably do that. Targetting ability?emote_confused you mean something like infernal? Anyhoo. i'm off to try something. |
| 01-11-2004, 12:54 AM | #7 |
The only way I can come up with to make a unit cast a spell - without giving an order (which would require a target) - is using the action "Game - Force User Key" or some such... Basically give the spell a hotkey, select the unit that has the spell and force the hotkey. Down side: there is a necessary wait between the "Select" action and the time the unit is actually selected. A "wait 0 seconds" should do it. But if for some reason the user selects something else in that moment, I think it would fail... Anyway good luck! |
