?s on scripting

As White Dragon posted, it depends on many factors. One example is having keyall.c and keyscript in same mod. Since both takes key press or release event, you might accidentally take same input and perform conflicting action

To prevent that conflict, you need to note what each script does
 
Oh ok I was wondering if that was the case, I have a level up script in my mod and I have a script Lagarto helped me with. It allows you to keep your weapons after completing stages. The problem I have with it is that it resets my player's current level back to level 1 after I cycle through all the weapons. Which means my player loses the heath max, strength, and MP max he just gained from killing enemies.
 
The problem I have with it is that it resets my player's current level back to level 1 after I cycle through all the weapons

That means the problem should lie in the cycling script. Do you know how exactly you cycle the weapons? I mean are you using keyscript or something?
 
No, it's script.c. When you press D D A it cycles through weapons using Follow2 and freespecial 2, Lagarto did this and explained that to me, he made it so I can keep all my weapons thru stages. (I'm starting to understand the scripting language more every day but I don't see how this would effect the level up script?)
 
You are using script.c to cycle weapons?

When you press D D A it cycles through weapons using Follow2 and freespecial 2

I'm lost here. I don't understand why you would need to use animations if you use script.c to cycle weapons
In D&D mod, we did and also map demo I made couple time ago, I just use keyscript to cycle arrows and no animation is used at all

but I don't see how this would effect the level up script?

Hmmm... why don't you search through the scripts and find any line which mentions globalvar or indexedvar. Two scripts might accidentally modified same variable
 
Back
Top Bottom