@ Amaranthine: http://cs.elderscrolls.com/constwiki/index.php/FQuestDelayTime
@ Arkingt:
Try opening existing companion mods and perusing the scripts attached to their NPCs. Most notably CM Partners and Companion Vilja, they both include commented explanations in their code. I am also very new at this, I only started learning CS scripting last week. But you can adapt existing mod's scripts rather easily if you know where to look. I mean, why reinvent the wheel right? Here's an example for invisibility.
if invisible == 0 && Player.HasMagicEffect INVI == 1 AddSpell "AAS14SpellInvisibility" set invisible to 1 elseif invisible == 1 && Player.HasMagicEffect INVI == 0 RemoveSpell "AAS14SpellInvisibility" set invisible to 0 endif
I created an ability that casts invisibility on self named "AAS14SpellInvisibility" beforehand, and 'invisible' is a variable short.
My questions:
1) Very simple: How do I maintain the order of the topics in my CS with how it appears ingame? For example, when I talk to my companion, he should display TopicA, TopicB, TopicC, and TopicD, in that order. Yet when I test it ingame, the whole order becomes jumbled. It becomes TopicD, TopicA, TopicC, TopicB, etc. (I'm talking about Topics btw, not the infos)
I have tried using Addtopic to load them in the correct order through quest stages scripts, and even scripts on activators, to no avail. Also tried renaming their Editor ID's alphabetically, again no change. The only way they seem to maintain order is if I add them to the Choices menu. And that obviously won't work when dealing with the main dialogue topics. Reluctant to use the AddTopic box because of the AddTopic bug discussed in the wiki.
Also note that the dialogues by themselves, work fine. Their conditions are perfect, they show up at the correct stages, the correct branching order, do the correct result scripts, etc. My only real problem is the arrangement which affects how quickly a player can access commonly used dialogue topics in NPC's (like 'Follow Me').
2) My Companion seems to... die. I have set him as Essential in his Base object, even set his ref as essential using scripting, but he still dies instead of just getting knocked out. Has anyone encountered a similar problem? Very weird.
There's more, but I guess I'll settle for those two for now. I can probably solve the rest on my own. However, those two are my most puzzling problems. And yes, I have searched for answers elsewhere before asking this, with no luck.