The error message I get is:
Wrong number of arguments for script subroutine "read_book" when processing trigger ""
We expected you to have 3 arguments
I am setting the script up to auto-read a book/manual until I cant learn anything new from it.
I have a set up an alias for "read *".
This then sends read %1 to world, and calls for the script sub set_book
sub set_book(name, output, arr_wild)
world.SetVariable "current_book", arr_wild(1)
end sub
My variable is showing up fine, so there must not be anything wrong with that.
Then I have a trigger set for "You finish reading *", and this is set to call the script sub read_book.
sub read_book(name)
world.execute "read " & world.getvariable("current_book")
end sub
So what did I do wrong that it expects me to have more arguments. I'm not sure what it wants, as it seems to me it should just send "read <current_book>" when the trigger is triggered.
-Terin Altari
Wrong number of arguments for script subroutine "read_book" when processing trigger ""
We expected you to have 3 arguments
I am setting the script up to auto-read a book/manual until I cant learn anything new from it.
I have a set up an alias for "read *".
This then sends read %1 to world, and calls for the script sub set_book
sub set_book(name, output, arr_wild)
world.SetVariable "current_book", arr_wild(1)
end sub
My variable is showing up fine, so there must not be anything wrong with that.
Then I have a trigger set for "You finish reading *", and this is set to call the script sub read_book.
sub read_book(name)
world.execute "read " & world.getvariable("current_book")
end sub
So what did I do wrong that it expects me to have more arguments. I'm not sure what it wants, as it seems to me it should just send "read <current_book>" when the trigger is triggered.
-Terin Altari