Monkeyuncle8 Posted March 28, 2010 Share Posted March 28, 2010 for the longest time I have been having trouble with scripts whenever I save them more than one I put different lines in, but none of them process has anyone else had this problem and if so how do I fix it? Link to comment Share on other sites More sharing options...
Argomirr Posted March 29, 2010 Share Posted March 29, 2010 Erhm. Well that really depends on what you do with the scripts. You're probably doing something wrong, but I can't tell from what you've said. Could you elaborate? Link to comment Share on other sites More sharing options...
Khet Posted March 29, 2010 Share Posted March 29, 2010 Give us a sample of what you're doing. That is, copy/paste the script. No one can tell you what's wrong until we see it. There could be twenty different reasons for a script "Not processing" and even on top of that, another twenty definitions of "not processing" Link to comment Share on other sites More sharing options...
Monkeyuncle8 Posted March 29, 2010 Author Share Posted March 29, 2010 ok well I dont have any trouble right this second, but I do remember an old script that I had that didn't process all the way ref selfshort varbegin gamemodeset self to placeatme.item self.disableend I did this and it just kept putting the item and not disabling I did have one more script that was very complicated, but under some function I had player.moveto (forget where) and player.enablecontrols and all that it did was move me somewere I couldn't do anything else Link to comment Share on other sites More sharing options...
Argomirr Posted March 29, 2010 Share Posted March 29, 2010 MoveTo acts as a return call, so unless properly used it will prevent the rest of your script from running, e.g. this: If DoOnce == 0 Player.MoveTo Ref Set DoOnce to 1 EndIf will cause the player to be moved over and over because DoOnce == 0 never becomes false. This is proper usage: If DoOnce == 0 Set DoOnce to 1 Player.MoveTo Ref EndIf Your scripts probably weren't advancing properly As for the script with PlaceAtMe, I do hope you've put in some safety measures to prevent savegame bloat. ;) What's probably makiong you think it doesn't work is that there's a new ref being created every frame; the old one is disabled, but another one has been created and put at the exact same spot. That's my theory, at least. Also, what types of scripts are these supposed to be? The PlaceAtMe is an object script, I assume? Link to comment Share on other sites More sharing options...
Monkeyuncle8 Posted March 29, 2010 Author Share Posted March 29, 2010 yeh they were both object scripts and I think that might have been the problem thanks Link to comment Share on other sites More sharing options...
Recommended Posts