Huntragon Posted May 6, 2011 Share Posted May 6, 2011 Can the variables have the same name if they are from different mods? I'm making a little mod in the cs and my variables have the same name in other mod, so I would like to know if there will be any incompatibility between the mods or if its fine. Link to comment Share on other sites More sharing options...
Maskar Posted May 6, 2011 Share Posted May 6, 2011 If you have 2 mods, both using the same quest name(s) and variable(s), it will still work fine. However, if you want to change such a variable in the console it will only change for 1 of the 2 mods. Link to comment Share on other sites More sharing options...
Huntragon Posted May 7, 2011 Author Share Posted May 7, 2011 Thanks for the help. Also, can you tell me what is wrong with this script:begin gamemode if casts==0 set today to 0 set lastday to gameday else if casts!= 0 set day to gameday set today to 1 endif if today == 1 if day!=lastday set casts to 0 endif endif endI use it to reset the number of times a spell has been casted each day.It works fine, except the first time I use the spell each day, the first time I used the casts variable isn't reset,is the same number than last day, but after the first time it works fine, reseting the number. I tried everything I can think of, but it doesn't work. This script is a quest script, with all the other variables that need to be updated. Also, for some reason, if I use set fquestdelaytime to 10, the cs says unknown variable. Do I have to declare that variable first? I read in the cs wiki that it doesn't need to be declared, but it just doesn't work. Thanks again for the help. Link to comment Share on other sites More sharing options...
Maskar Posted May 7, 2011 Share Posted May 7, 2011 You do indeed need to declare the variable first to be able to use it. Concerning your script you seem to have included an if statement (else if cast != 0) too many. Link to comment Share on other sites More sharing options...
Recommended Posts