First of all, is it possible to split a string into an array ?
It's because I'm trying to extract X,Y from:
- button <randomX> <randomY> 2151 2150 1 0 2
... But I'm stuck, if anyone could help me. I'd appreciate !
Code: Select all
....
var line = ""
var x = ""
var y = ""
var a = 0
line = uo.LastGump('command', i)
if left(line, 6) == "button" then
uo.print("Button found... !")
## Trying to extract X value
a = a + 7
while NOT line[a] == " "
uo.print("Number: "+line[a])
## This part is not working...
x = str(x + line[a])
a = a + 1
end if
....