Jump to content

Armor Making Problems


bomo99

Recommended Posts

this is the code for the summon:

scn DMRSummonDraxe

begin ScriptEffectStart
Dispel DMRSummonDarekeSpell
Dispel DMRSummonDremoreSpell
Dispel DMRSummonDrumphSpell
Dispel DMRSummonKalKnightSpell
Dispel DMRSummonKarokeSpell
Dispel DMRSummonKorinxSpell
Dispel DMRSummonLarilicheSpell
Dispel DMRSummonSolaceSpell
Dispel DMRSummonWarfeSpell
if ( DMRDraxeRef.GetDisabled )
DMRDraxeRef.Enable
endif
if ( DMRDraxeRef.GetDead )
DMRDraxeRef.Resurrect 0
endif
DMRDraxeRef.ResetHealth
DMRDraxeRef.MoveTo PlayerRef
DMRDraxeRef.PlayMagicEffectVisuals ZDRE 60.0
Message "Summoning Draxe"
end

begin ScriptEffectFinish
DMRDraxeRef.DispelAllSpells
DMRDraxeRef.MoveTo DMRSummonBackRef
DMRDraxeRef.Disable
Message "Draxe returned to his Dimension"
end

begin ScriptEffectUpdate ; this one might have issues, although it should work I think
if ( DMRDraxeRef.GetDead )
Dispel DMRSummonDraxeSpell
endif
end

Now i have observed something small but it is very noticeable when you summon one then summon another the summon will lag for a sec but then will be fine if anyone can help fix the lag issue i'd be grateful (The code functions like it should it just lags the game)

Link to comment
Share on other sites

  • Replies 74
  • Created
  • Last Reply

Top Posters In This Topic

i have another idea i was wondering if it is possible to have weapons auto repair and recharge at lets say every 5 sec

recharge could be 1 use per 5 secs

repair could be a normal amount from a repair hammer or lets say 25 Wep health every 5 secs.

the limit could be ingame 100 if not expert, 125 if expert or master armorer

Edited by bomo99
Link to comment
Share on other sites

Does it lag without the Dispel commands in ScriptEffectStart (for testing, to see if that would be the issue)?

 

And yes, with OBSE, it is possible to build equipment auto-repair functionality, and auto-recharge and almost anything. Those things do require some scripting knowledge and maybe some thinking. It is not too difficult once you know how to create timers (in a quest script or in the magic effect script) and use looping commands from OBSE. Maybe someone else can assist you in that?

 

Come to think of it, TES Alliance has Oblivion scripting tutorials (among other things) on their Forums. Maybe those could be of use to you. Their site was apparently targeted by a hacker at some point, so if the content looks suspicious, you should probably keep away and try again at a later time (the site seems fine at the moment, though): http://tesalliance.org/forums/index.php?/forum/82-esiv-oblivion-school/

Link to comment
Share on other sites

ive ran into a little bug with the script which i thought

scn DMRDarekeAmuletScript

BEGIN ONEQUIP PLAYER
Player.Addspell DMRDarekeAmuletEff
End

BEGIN ONUNEQUIP PLAYER
Player.RemoveSpell DMRDarekeAmuletEff
End

on the unequip i thought that it would do the same if some were the put the equipped item to storage it would get rid of the spell(because technically the player unequipped the item) would adding this fix the issue

BEGIN ONDROP PLAYER

Player.RemoveSpell DMRDarekeAmuletEff

End

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...