[JASS]Bind spell A### to patrol/attack/keys (arrows,ESC)

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Post Reply
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

[JASS]Bind spell A### to patrol/attack/keys (arrows,ESC)

Post by eddydu555 »

Hi i got the idea from JJCP's -tele command but instead of binding blink to patrol it would be any spell to either attack or patrol or maybe keyboard keys.

The command to do it would be something like"-binatck ####" to bind spell #### to attack or "-bindptrl ####" to bind spell #### to patrol,and the same for keys and with the possiblity to set the skill level like in -add command

Is one of the things above possible to do ? and if yes can you help me with the script ?

thanks for reading :D
User avatar
haxorico
Super Moderator
Posts: 3188
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Contact:

Re: [JASS]Bind spell A### to patrol/attack/keys (arrows,ESC)

Post by haxorico »

It is possible... sort of.. I think..?
But you misunderstand the way the command works. When you press P it doesnt cast a blink spell. It changes the unit location by code. Yet I think that making it cast a spell is possible. I just never tried messing with spells.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
KangTooJee
Old Wrinkly Member
Posts: 202
Joined: September 15th, 2010, 5:09 am
Title: Legenda

Re: [JASS]Bind spell A### to patrol/attack/keys (arrows,ESC)

Post by KangTooJee »

i dont think this is possible.. hax how do u make the unit cast the #### spells?
User avatar
haxorico
Super Moderator
Posts: 3188
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Contact:

Re: [JASS]Bind spell A### to patrol/attack/keys (arrows,ESC)

Post by haxorico »

I said i never messed around with spells. But from a logical stand. It is possible. Ill see if i can make a basic prototype function for that when i get home.
Still it wont be a hotkey persay. As if the spell doesnt require a target, you will still need to click on the map. Also i dont think it can work for spells like chain lightning as i dont think you can grab from within the code, who you tried to attack (thw unit you clicked upon after hitting A)
Still in all it just seems useless. You can make custon hotkeys for any spell... why not use that instead?
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: [JASS]Bind spell A### to patrol/attack/keys (arrows,ESC)

Post by eddydu555 »

It was to have more spells for my units than other players,if its impossible

what about something like a command "-add #### #### ####" (the #### are spell id) and after you type that only the first #### will be added and when you press a key like H or P you will switch between the three spells,is that possible ?
Post Reply