How to spawn using leveled character forms inside a list

Post » Fri Oct 14, 2016 3:31 am

Greetings. Please, some kind soul throw me a bone.


For two days I am trying to write a script that will spawn 6 toons at the player. Normally I use custom form lists of actors and randomly pick,one to spawn using the place actor at me command. Works fine.


But now I made formlists using leveled characters instead. From the creation kit section called Leveled Characters. They are the ones that when you double click on them a list opens up with a bunch more and then when you clvk,on one of those yet another lists opens until depending on player level an actor is,finally produced. So I made a form list with all 39 bandit Leveled Character forms. Now I need to,pick,one at random which is already coded and then spawn a toon using selected leveled character list. I tried selecting one of the thirty nine and casting as an actor and also an actor base but using the placeactoratme command spawns nothing.


Is it even possible? I have doubts since there is no papyrus script object for Leveled Characters. It's like they are only supposed to used as placeable objects in the game, not scripted.


Any help appreciated
User avatar
CHangohh BOyy
 
Posts: 3462
Joined: Mon Aug 20, 2007 12:12 pm

Post » Thu Oct 13, 2016 2:32 pm

In effect, what you're doing is placing spawn points for the next cell reset, rather than placing an immediate copy of the actor.



Leveled characters are just another way of doing the random selection your code does, so doubling up the work seems pointless. There's also a lot of provision for random equipment in each actor definition, so you should have enough variety without using the leveled characters at all.



You might also want to look at spawning them somewhere else (holding cell?) and moving them to the player, instead of using PlaceAtMe. Then the creation and location don't have to be at the same time.

User avatar
natalie mccormick
 
Posts: 3415
Joined: Fri Aug 18, 2006 8:36 am

Post » Thu Oct 13, 2016 6:03 pm

Lol! That's why I would retest come back and spawns would appear! Hilarious.


Thank you, this is very very helpful.


I was going insane.
User avatar
ladyflames
 
Posts: 3355
Joined: Sat Nov 25, 2006 9:45 am


Return to V - Skyrim