ID:158050
Nov 11 2009, 11:26 am
|
|
How would I go about making a macro system for my Obj type Beam System? The obj of the beam is put in the 'Techs' tab, and when you click the obj, it preforms the technique. How would I make it so when you macro a technique, you can just enter 'Kamehameha' or 'Fly' or 'Ki-Cannon', instead of '.click Ki-Cannon' which seems to be hit or miss. Sometimes it works and sometimes it doesn't. Please let me know how I could do this.
|
In response to Kaioken
|
|
Kaioken wrote:
Cyberlord34 wrote: Thank you very much, Kaioken. |
In response to Garthor
|
|
(If you read carefully, you'll see that wouldn't actually help him with what he asked.)
|
In response to Cyberlord34
|
|
You're welcome. It's good to see people working out their problem on their own without being fed code!
Just for future reference, you should never quote a whole post when replying to it <small>(there can be an exception when the post is very short)</small>, since that ultimately contributes nothing other than wasting space. The quoting is there if you want to point out or reply to something specific someone had said; people can know who you're replying to even if you don't quote at all! So use quoting more sparingly; obviously including a whole post in your reply and just adding a sentence to that looks pretty silly. |
In response to Kaioken
|
|
Kaioken wrote:
You're welcome. It's good to see people working out their problem on their own without being fed code! Hah, yeah I know. I always try to shorten my replies when commenting or posting, but this time I slipped up. :P |
That's because the object needs to have been recently in 'the client's view' for that to work. In this case, this means it won't work unless the statpanel with the objects was recently opened.
Pretty easily, by thinking it through. Just make a verb for using techniques that takes the technique name as a text argument, and make that verb look for that name through that player's techniques and once it matches, activate that technique (if you don't have another method, you could call its Click() proc).
So the macros could use commands like these: .usetechnique "kamehameha".