| 01-15-2005, 07:55 PM | #1 |
I made an walking system so your hero can walk with the arrow buttons, but I'd also like to add a system, which lets you attack with a single click of an button. I don't have a slightest clue of how to do this so I need help. - Click button "A" (just an example) - Unit attacks with his sword to the way his face is pointing. So? Is this kind of system possible? How do I make it? Do I have to use triggers or can I do it with the object editor and editing some abilities? |
| 01-15-2005, 08:02 PM | #2 |
Just to get this thread on the top so people can see it (stupid, but I really need help). |
| 01-15-2005, 08:04 PM | #3 |
u need both a custom spell and triggers. When the spell is cast make the hero stop moving and show its attack animation. Then pick all units in range of him but not being beside or behind him (will require some angle stuff) and take the unit - damage unit action. |
| 01-15-2005, 08:06 PM | #4 |
Is it possible for you to make a small map explaining this thing, or do I ask too much? As I stated before, I really need help with this.. |
| 01-15-2005, 09:38 PM | #5 |
here you go. Tho this will require you setting the range and damage and stuff, it works nicely. hope you know a little bit of jass cause I dont like memory leaks so I used some custom scripts to deal with that. |
| 01-16-2005, 05:52 AM | #6 |
Ouch.. JASS.. Well.. I'll try to work that out. EDIT: JASS huh? Can I still open it with the normal World Editor (version 1.17)? |
| 01-16-2005, 06:42 AM | #7 |
Guest | wow i like this system u made so i am useing it in my map dont worry toot i have allready given u credit for it |
| 01-16-2005, 06:44 AM | #8 |
He made it specially for me.. kablamo185 Can I ask you to remove the map now toot? Because I'd like to keep this as a special thing that only my project uses.. And may I ask you too to leave it untouched kablamo185? |
| 01-16-2005, 06:50 AM | #9 |
Guest | what why?????? if he only wanted u to use it then he would ahve given it to u privatly but ofiously he doesnt care if other people use it so i gess it is ok if i use it if i give credit but if toot asks me not to use it then i will have to spend time developing my own system then |
| 01-16-2005, 06:52 AM | #10 |
Sounds fair.. Let's see what toot says. EDIT: I didn't do anything for the real system, but the 'idea' came from my womb.. |
| 01-16-2005, 11:19 AM | #11 | |
I make things for people to learn. I recoment you to not use it is you do not understand it. Besides, its not so hard 2 understand, it is also posible with 100% GUI triggers but that would leak memory, like I said Quote:
|
| 01-16-2005, 04:10 PM | #12 |
Ok. Looks good and works fine. I thank you. |
