Jump to content

Can't Get Script To Work


Omni 7776

Recommended Posts

Hey guys, I'm... well not "New" to modding, but I have only modded Oblivion for about 2 months now, and I used to mod pc games like Star Wars: Knights of the Old Republic 1 and 2, so I know what I'm doing... or... Sort of know what I'm doing.

 

I decided to just make a quick mod for fun and for the heck of it, and of course, there were problems in even the simplest mod.

 

I don't really care for "messy" assassinations, where the bodies like move around after you kill them, I prefer assassinating them, and still have their body where it was when they died, So I made a weapon with a one hit kill effect and no damage so the body wouldn't fly everywhere.

 

I made a weapon and a spell, and the spell works fine, but the weapon isn't working correctly.

 

First I tried making the script and usin it via an enchantment. The script I used on the enchantment for the blade was:

 

scriptName 0Kill

 

begin scriptEffectStart

kill

end

 

But when I hit someone witht he weapon, instead of dying, they just either fled or started attacking my character. So then I tried adding 1 point of damage and had the same thing happen. So I added the script directly to the weapon this time instead of the enchantment:

 

scriptname 0Deathstrike

 

Begin OnHitWith 0Deathblade

 

Kill

 

end

 

Alright, so that did the same tihng to, and so did this:

 

scn 00Death

 

Begin OnHit Player

 

kill

 

end

 

So now I can't figure out why the script isn't taking effect. Can somebody help me out?

Link to comment
Share on other sites

You don't need a script if your attack damage is high enough. When you make your weapon put the damage to... 10000 perhaps. I positive that there are no creatures with higher hit points. Or you can use the script.
Link to comment
Share on other sites

You don't need a script if your attack damage is high enough. When you make your weapon put the damage to... 10000 perhaps. I positive that there are no creatures with higher hit points. Or you can use the script.

As he said, he doesn't like bodies flying around when they're killed. I assume that means that the higher a weapon's damage is, the further bodies go.

Link to comment
Share on other sites

You don't need a script if your attack damage is high enough. When you make your weapon put the damage to... 10000 perhaps. I positive that there are no creatures with higher hit points. Or you can use the script.

As he said, he doesn't like bodies flying around when they're killed. I assume that means that the higher a weapon's damage is, the further bodies go.

Then either lower the havok settings fdeathforcedamagemax and fdeathfrceforcemax, or put an enchantment like shock damage on the weapon. It's going to kill them anway, you could even just add a high damage health enchantment to a weapon, and have the same effect.

 

The reason why your script isn't working is that onhit blocks only work within the script of what you want to hit, not what you're using to hit that thing with. If you really want to go with a scripted death (tends to be buggy) you probably would have had to reference the actor hit with that enchantment (IE set self to getself) for the kill function to work. Scripted enchantments run on what was hit with that effect, as if they had that script attached to them. In this way, a getself will return the person affected by the scripted effect, and not the spell ID.

 

Personally, I think just adding a weapon with a high damage health enchantment is probably your best bet. But changing the settings might prove more useful in general so that you don't need to use a specific weapon.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...