Jump to content

Variables names


Huntragon

Recommended Posts

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

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

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
end

I 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...