Jump to content

script problems


Monkeyuncle8

Recommended Posts

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

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 self

short var

begin gamemode

set self to placeatme.item

self.disable

end

 

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

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

  • Recently Browsing   0 members

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