Talk:SetLevel
I removed this from the article:
- IMPORTANT: This function can cause crashes and is not considered safe ! It's just a matter of time or number of uses (prabability based) until it produces a crash. The best way to crash is to use it on an actor that is equipped with a bow. The other way is to use it very frequently.
Can anyone verify this? I've never heard of any problems with SetLevel, and no note was given about this, so I'd like to actually hear about when and where people have seen problems with this. Thanks.
Dragoon Wraith TALK 10:57, 6 August 2007 (EDT)
- If anyone wants to test it, don't forget to use it on actors with equipped bows (city guards with bows are fine). Just open console click on the actor and type setlevel 10 for example (you should now see the bow disappear), then close the console (You should now experience a CTD). Try a few times. - Scanner
I can confirm this. I tried to SetLevel Imperial Guards (with Bow equipped) and the game crashed everytime I pressed 'Enter'. - Rung
- My game crashes after using this command on the player in the console and reload (for mod testing purposes). Can anyone verify this? Thanks.
- --BlackBaron1024 17:37, 30 August 2007 (EDT)
- My game crashes after using this command on the player in the console and reload (for mod testing purposes). Can anyone verify this? Thanks.
- From the article:
NOTE: This function can be called on the player and will change the player's level, but not any of his stats (and the world will not "level up" with the player until he goes through a loading door, or changes cells), so this is not recommended. Use AdvancePCLevel instead.
- Dragoon Wraith TALK 02:11, 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.
--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.
Latest news from the SetLevel frontier :
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 :
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.
Now this even helps using setscale for the player itself. Do the following for the player :
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 !
Now I leave it up to everyone to verify this.
Happy Scripting --Scanner 14:25, 2 September 2007 (EDT)
- Sounds excellent. Thanks for your testing this!
- Dragoon Wraith TALK 12:00, 3 September 2007 (EDT)