Hello, I want to create a command what can reverse text what I write there. So for ex. I type /reverse apple , I ge elppa. I already tried this, this is my script now
I think the problem is getting the character of the text. It can't get the next character of the string. I hope you understand me. Thanks for helping!
Sorry for my bad English
[doublepost=1545240837,1545240590][/doublepost]Okay, sorry, I didn't checked the docs. For someone with the same problem: just type 'send reverse arg-1'
code_language.skript:
command /reverse <Text>:
trigger:
set {_c} to length of arg-1
set {_a} to "%last character of arg-1%"
loop {_c} times:
set {_c} to {_c} - 1
set {_a} to "%{_a}%%character {_c} of arg-1%"
send "%{_a}%"
Sorry for my bad English
[doublepost=1545240837,1545240590][/doublepost]Okay, sorry, I didn't checked the docs. For someone with the same problem: just type 'send reverse arg-1'