Yes, queue.lua will contain all of my different queue functions, for potion afflictions, eating/smoking afflictions, etc.
healing.lua contains all of the functions regarding actually healing, drinking potions, eating herbs, smoking, applying etc
Quote: if I change it to heal='drink.fire', i get..
Error number: 0
Event: Run-time error
Description: ...program files/mushclient/scripts/lusternia/queue.lua:8: attempt to call field 'heal' (a string value)
stack traceback:
...program files/mushclient/scripts/lusternia/queue.lua:8: in function 'queue'
.../program files/mushclient/scripts/lusternia/cold.lua:16: in function <.../program files/mushclient/scripts/lusternia/cold.lua:12>
Called by: Function/Sub: afflict.shiver called by trigger
Reason: processing trigger ""
I'm assuming the error is in the queue.lua file, with queue (), when it attempts to call heal, but the contents of heal is a string.
Quote: Now, the errors I receive..
Run-time error
World: Laeric on Lusternia (Ur'Guard)
Immediate execution
...rogram files/mushclient/scripts/lusternia/tables.lua:102: attempt to index global 'drink' (a nil value)
stack traceback:
...rogram files/mushclient/scripts/lusternia/tables.lua:102: in main chunk
[C]: in function 'dofile'
.../program files/mushclient/scripts/lusternia/init.lua:1: in main chunk
[C]: in function 'dofile'
[string "Script file"]:1: in main chunk
is from when I have it set as cure=drink.fire, it's saying that drink is a nil value, I think?
Edit: I'm going to write a smaller version of this in one file to try and see if I can make something that's exactly what I'm doing, but set up for test purposes instead..
Thanks for all your help
|