d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Javascript Quick Question
Add Reply New Topic New Poll
Member
Posts: 13,294
Joined: Jul 30 2011
Gold: 10.00
Jun 27 2012 02:03am
I'm trying to write a script for a game of mine ;)

Let's say I'm playing (in a game or somewhere), I'd like my character to say ''Please do A'' if I type .A (or press a key) or say ''Please do B'' if I type .B (or press a key).

I can't seem to find anything for that.

If you need more explanation on this, please PM me so we can discuss it furthermore ^_^

tl;dr what's the command used to say something triggered by me typing something or pressing a button.

This post was edited by Hylia on Jun 27 2012 02:04am
Member
Posts: 649
Joined: May 28 2012
Gold: 14.00
Jun 27 2012 02:12am
Quote (Hylia @ 27 Jun 2012 10:03)
tl;dr what's the command used to say something triggered by me typing something or pressing a button.


there is no such command.

give more details if you want help (link to the game and so on)

edit : as said in your other topic, take a look at onKeyPress/onKeyUp events

This post was edited by FCNantes on Jun 27 2012 02:12am
Member
Posts: 13,294
Joined: Jul 30 2011
Gold: 10.00
Jun 27 2012 02:16am
Quote (FCNantes @ 27 Jun 2012 04:12)
there is no such command.

give more details if you want help (link to the game and so on)

edit : as said in your other topic, take a look at onKeyPress/onKeyUp events


PM'd
Member
Posts: 29,723
Joined: Jun 11 2007
Gold: 279.52
Jul 6 2012 01:10am
if your talking about actual audio, thats not going to happen.
Banned
Posts: 2,525
Joined: Jan 2 2012
Gold: 0.01
Warn: 10%
Jul 6 2012 04:19am
Quote (AkuuZ @ 6 Jul 2012 08:10)
if your talking about actual audio, thats not going to happen.


<audio> with base64 content that's generated by javascript.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll