Difference between revisions of "Talk:SetLevel"
Jump to navigation
Jump to search
Added working method for SetLevel
imported>BlackBaron1024 |
imported>Scanner (Added working method for SetLevel) |
||
Line 15: | Line 15: | ||
::::Yes, yes, I know, I did read the article, specially before posting. I was using player.setlevel for testing purposes (I have a script whose effects change with the player's level) and whenever I loaded a saved game after using setlevel, the game crashed. The same happen whitout my mod loaded (it could still be caused by another mod). I'm just reporting it to see if this has happened to anyone else and as an extra proof the command is unsafe and not recommended.<br /> --[[User:BlackBaron1024|BlackBaron1024]] 02:57, 31 August 2007 (EDT) | ::::Yes, yes, I know, I did read the article, specially before posting. I was using player.setlevel for testing purposes (I have a script whose effects change with the player's level) and whenever I loaded a saved game after using setlevel, the game crashed. The same happen whitout my mod loaded (it could still be caused by another mod). I'm just reporting it to see if this has happened to anyone else and as an extra proof the command is unsafe and not recommended.<br /> --[[User:BlackBaron1024|BlackBaron1024]] 02:57, 31 August 2007 (EDT) | ||
Latest news from the SetLevel frontier :<br><br> | |||
It seems SetLevel is only unsafe to use if used within the same cell as the player is inside. It happens mostly used on actors with bows equipped like guards, but to be on the safe side the player and the target must be in different cells. So if you want to use it on a target actor within the players view - do the following :<br><br> | |||
'''Set a marker on the targets coordinates and an outside cell. Move the target outside, do the setlevel job and finally move the target back inside to his original position - all in an instant - the player won't notice.'''<br><br> | |||
Now this even helps using setscale for the player itself. Do the following for the player :<br><br> | |||
'''Set a marker for outer space, create player clone, move player clone to outer space, setlevel clone, use DuplicateNPCStats to change the player values and finally delete the clone. No crash so far and the players stats get changed immediately !'''<br><br> | |||
Now I leave it up to everyone to verify this.<br> | |||
Happy Scripting --[[User:Scanner|Scanner]] 14:25, 2 September 2007 (EDT) |