I tried to be clever to make a big list of spells in order easily pick a more powerful one, if the player's level got higher. Here's my code (the relevant part):
FormList property HT_ListTrapPoison autospell property HT_SpellTrapPoison auto;================================================================int worldlevel = CalculateEncounterLevel(0)int index = worldlevel/10 ; My idea here is that for every ten levels the player has; increase the level of the spell (max 100:10, min 10:1)if index < 0 index = 1elseif index > 9 index = 10endif;HT_SpellTrapPoison = HT_ListTrapPoison.GetAt(index) ; This gives me compilation error. I made this line a comment; then I could save my scriptDebug.Notification(HT_SpellTrapPoison)if canDisease HT_SpellTrapPoison.cast(myTarget, myTarget)endif;================================================================
Is there any way I can grab the info out of my form list and assign it to my "HT_SpellTrapPoison" property?

), though every Spell is a Form not every Form is a spell. What you need to do is append "as Spell" after the call to GetAt() to cast the returned object from a Form to a Spell. Like this: