D
Deleted member 141899
Guest
Hello,
Maybe any of you can give me a light..
I'm using tfs 1.1, and i'm trying to set a global variable in a raid script on data/raids/scripts, like that:
I have printed the script to check if its really executed, so i saw thats its working fine.
The problem is, after setting this variable to true, its returning nil for all others scripts. if i set a global variable in a talkaction or other place for example, its work and return true in others scripts. This is not the only problem, raids scripts doesn't work with compat.lua functions, if i need to call some function i need to use a doFile for it.
I tried to review my raids.cpp and .h, but i didn't find nothing weird..
Someone have an idea what is causing this?
Maybe any of you can give me a light..
I'm using tfs 1.1, and i'm trying to set a global variable in a raid script on data/raids/scripts, like that:
Code:
function onRaid()
print("executed")
MITCRaidActive = true
end
I have printed the script to check if its really executed, so i saw thats its working fine.
The problem is, after setting this variable to true, its returning nil for all others scripts. if i set a global variable in a talkaction or other place for example, its work and return true in others scripts. This is not the only problem, raids scripts doesn't work with compat.lua functions, if i need to call some function i need to use a doFile for it.
I tried to review my raids.cpp and .h, but i didn't find nothing weird..
Someone have an idea what is causing this?