Alright, so I've updated the code quite a bit.
I added that multi input string parser for the Listening and for the newly made Triggers (for both client and serverside keypresses).
Example of triggers on the serverside:
Code:
@name
@inputs
@outputs I
@persist
@trigger all
if(first() | duped()){
triggerForKey("forward")
}
if(keyDown("forward")){
I+=1
} Example of trigger with clientside listening:
Code:
@name
@inputs
@outputs I
@persist
@trigger all
if(first() | duped()){
cListenForKey("a")
cTriggerForKey("a")
}
if(cKeyDown("a")){
I+=1
} I tried to make the strings for the keys as intuitive as possible. Feel free to look through the code for them. Oh, and the multi register works like this:
Code:
@name Serverside
@inputs
@outputs A S D W
@persist
@trigger all
if(first() | duped()){
triggerForKey("forward,back,moveleft,moveright")
}
if(keyDown("forward")){
W+=1
}elseif(keyDown("back")){
S+=1
}elseif(keyDown("moveleft")){
A+=1
}elseif(keyDown("moveright")){
D+=1
}
@name Clientside
@inputs
@outputs A S D W
@persist
@trigger all
if(first() | duped()){
cListenForKey("a,s,d,w")
cTriggerForKey("a,s,d,w")
}
if(cKeyDown("a")){
A+=1
}elseif(cKeyDown("s")){
S+=1
}elseif(cKeyDown("d")){
D+=1
}elseif(cKeyDown("w")){
W+=1
} I still don't have it reset anything when you leave the server nor does it recognize when another chip needs to keep listening. Still, it's better now than it was on initial release. Expect another update soon.
Bookmarks