WarRatsG Posted August 8, 2011 Share Posted August 8, 2011 Hi, you may remember I asked a while ago how to do a script that slows down time. In the end I worked it out, but now there is a new bug that has appeared. As you may remember, I made the script with a spell and token. The token is what slows the game down (and speeds it back up during menus) and it does this every frame. The spell adds/removes this token. This works perfectly. Now, obviously if the game moves at a tenth of the normal speed, the player will become a little impatient. This gave me the idea to make the player move at the speed he normally would, but with everyone else slowed right down. So both weapon speed and the players speed attribute need increasing. Weapon speed is taken care of in the spell. The attribute is fortified by an enchantment on the token (Worn in the tail slot). Now, to increase the speed to the right amount, I divide the players speed by the Time Multiplier. So if the game is moving at 0.5, and the players speed is 50, then 50 / 0.5 = 100. The enchantment will be 100. This calculation is also done in the spell. Now both of these use the correct syntax, I know this because it works - but only on the second cast. The first cast slows down the game, but the weapon speed and player speed dont increase. The enchantment shows in the active effects menu, but it registers as 0 (its magnitude in the editor). On the second cast, the weapon speed increases and the player speed increases. The enchantment registers and the weapon starts to move faster. My question is, why could this be? The whole spell is bugged, sometimes it stops having an effect at all. My theory would be that it is to do with items resetting to their base levels if they aren't cloned. Ideas? Link to comment Share on other sites More sharing options...
PrettyMurky Posted August 8, 2011 Share Posted August 8, 2011 Hmm, odd. At a guess; it'll be some subtle error in logic somewhere. If you post the relevent scripts, I'll have a look and see if I can find anything. Link to comment Share on other sites More sharing options...
Recommended Posts