[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "Talk:Portal:Scripting"
Jump to navigation
Jump to search
→Script Question
imported>Arch-Mage Matt (Script Question) |
imported>DragoonWraith |
||
Line 69: | Line 69: | ||
end" --[[User:Arch-Mage Matt|Arch-Mage Matt]] 21:54, 4 August 2010 (EDT) | end" --[[User:Arch-Mage Matt|Arch-Mage Matt]] 21:54, 4 August 2010 (EDT) | ||
:To post code on the Wiki, either encase it in <tt><nowiki><pre></pre></nowiki></tt> tags, or start each line with a space (including blanks), like I've done here with yours: | |||
scn NecromancerCScript | |||
begin OnDeath | |||
Necromancer.Resurrect | |||
Message "Necromancer has died. Due to being immortal, he will resurrect shortly." | |||
end | |||
:Also, indenting is always a good idea. Anyway, to give you a very ''general'' answer to this, my approach would be to use an invisible, persistent activator to cast a silent, invisible scripted spell when he dies, and to continue to do so every few seconds until everything hit by the spell returns false on a [[GetCombatTarget|GetCombatTarget == player]] check (i.e. there are no actors in range that are considered to be in combat with the player). Once that happens, you can freely resurrect the guy. If you need more ''specific'' instruction than that, I suggest that you start a thread on the {{Forums}} - while we're happy to help here with general scripting questions, walking you through an entire script would be a little much for this page. Feel free to link to any thread you start, though, and I'll take a look at it. I think this is a really cool idea and I don't think I've heard of any companion with this feature. | |||
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 00:17, 5 August 2010 (EDT) |