Using AddToLeveledList

Post » Tue May 03, 2011 2:19 am

Hello! It's me again! Unfortunately.

I'm adding the finishing touches to my mod, but right now I'm having an issue with adding the items to the leveled lists using the AddToLeveledList command. The description for how to use it seemed a little vague to me, so any help would be appreciated.

From a quest, my script activates and runs.

scn CTLCharmListAdderScriptref CTLTestList2ref CTLCharmAcrobatics1Itemshort IsItTherebegin GameMode	if GetGameRestarted		AddToLeveledList CTLTestList2 CTLCharmAcrobatics1Item 1		set IsItThere to ( GetLevItemIndexByLevel 1 CTLTestList2 )		PrintToConsole "Is it there? %.0f" IsItThere	endifend


CTLTestList2 is an empty leveled list that I am trying to use for testing purposes, and CTLCharmAcrobatics1Item is one of my charms. I'm using GetLevItemIndexByLevel to tell if it's there or not... and it's not being added.

Since I don't really have a clear idea of the problem, would someone be so kind as to point it out? I would appreciate it.

Thanks,
Lazlow
User avatar
Kitana Lucas
 
Posts: 3421
Joined: Sat Aug 12, 2006 1:24 pm

Post » Tue May 03, 2011 1:43 am

Surely, someone knows what the issue is?

My alternative is to manually place the items around cells, and that would take me a while.
User avatar
Lifee Mccaslin
 
Posts: 3369
Joined: Fri Jun 01, 2007 1:03 am

Post » Tue May 03, 2011 10:52 am

Ok, wild-arsed guess here......

I have noticed that some commands when asking for a 'ref', really want a ref variable, and won't recognize anything else, so, try defining a ref variable, assigning your leveled list to it for its 'value'.

We use this command in CoC (link in sig) and it works great for us......
User avatar
Carlitos Avila
 
Posts: 3438
Joined: Fri Sep 21, 2007 3:05 pm

Post » Tue May 03, 2011 10:27 am

I've been taking a look at your code and trying similar techniques, if you don't mind me saying. Unfortunately, I'm still getting no result.

I'll keep trying, but I wish OBSE commands were better documented.
User avatar
Shannon Marie Jones
 
Posts: 3391
Joined: Sun Nov 12, 2006 3:19 pm

Post » Tue May 03, 2011 6:15 am

Aha! It WAS working all along!

It was just a matter of patience.

Suddenly, it struck me; containers need to be respawned for the spawnlist to update. I waited outside my test cell for three days, went back, voila! The items are there!

Hooray. Thank you for the help, HeyYou.
User avatar
Sudah mati ini Keparat
 
Posts: 3605
Joined: Mon Jul 23, 2007 6:14 pm


Return to IV - Oblivion