| 12-27-2009, 01:06 AM | #1 |
I need help with RisingDusk's LastOrder system. I got it on recommendation and have taken a look at it. I've implemented xe and CasterSystem by Vexorian, so I'm familiar with how these systems work. The only problem is I haven't touched JASS in 6 months and am rusty. I forgot so much information, and I get a headache just trying to do it all again. What I'm trying to do is disable the "smart" command on a unit with the ward classification so that it can be controlled by both AI and direct commands from another unit. The ward class unit also follows the unit that commands it around on screen until an enemy gets to close and it attacks, or it's issued a command by the commanding unit. After it follows it's order it returns to following the commanding unit again. Obviously LastOrder is great for this. I'm having trouble registering the units though. For some reason my global variables register the wrong unit. I'm still learning how to create scopes and libraries meanwhile, so I can benefit from using them and making my own systems integrate with other people's. I can' figure out how to set up LastOrder so it stops smart strings by the warded units created. I know even after I set that up, I'm going to have to make sure the unit returns to following it's master after a command is issued, but I don't want it to perform an ability, return to it's master, than go back to fighting the unit. It's tricky, and a little help would be great. I plan on working with my trigger a bit more so that it's working better. Then I'll be able to demonstrate my own attempt at what I'm doing. |
| 12-27-2009, 02:50 AM | #2 |
1) Add ward classification 2) Add Rally Point skill 3) Fix rally point flag model 4) PROFIT (whithout any 200 lines system) NOTE: this method used nowhere, soo you have a chance to be first. |
| 12-27-2009, 06:00 AM | #3 | ||
If you've a concern with LastOrder, I suggest posting it in the LastOrder thread and not here. I'm active, so I would gladly help you with it. Quote:
Quote:
|
| 12-27-2009, 03:00 PM | #4 |
Yeah, I've figured that out. The problem really isn't with the system at all, it's with my inability to pull syntaxes out. I can usually understand JASS and vJASS just fine looking at it, but trying to code something from scratch is a lot tougher as I have little to few JASS commands memorized. My end results typically end up with me having more difficult code than necessary after spending a lot of time going through tutorials, GUI conversion, and the vJASS manual trying to find the code I need. After reading through all that I end up having a headache. :\ But usually the code works flawlessly, so it's not terrible. The rally method is a great idea though! I'll do that instead. I'm sure I'll still need the LastOrder system, as it'll take care of much of the unit AI since the unit will mostly be controlled by another unit. EDIT: Found out what one of my bigger issues was. I was no longer using the BJ of CreateNUnits, instead using CreateUnits, and then trying to get LastCreatedUnit. Fixed. |
