Jump to content

Using timers, GetAV and other commands :S


Recommended Posts

When I said I would fiddle with it I meant I would make a cool working version and of course send it to you first. If I end up using it for something I will credit the idea to you. I am mostly just curious of how this can be used for interesting items and things. I'm not stealing your idea, just experimenting with it.
Link to comment
Share on other sites

Very well...but still, if you have the capability can you help me out? I can't figure out something. By all means you can experiment with use in your own mods NP. But as I said, for now I personally need help since this is why this thread was made :).

 

I want to know if I can set a resistance FROM "smallguns" and "bigguns" etc? I'm currently trying to implement some sort of "bullet proofing" effect, here's the script I have:

 

 scn BOSBulletProofing

short ShieldEffect

Begin OnEquip player
 Set ShieldEffect to 1
 player.addspell BOSBulletProofingEffect
end

Begin OnUnequip
Set ShieldEffect to 0
player.removespell BOSBulletProofingEffect
end

Begin GameMode
; if shield on and ap < 1 and armor is unequipt, turn shield off
if ShieldEffect == 1 && player.GetActorValue ActionPoints < 1 && player.GetEquipped ArmorPowerBrotherhoodOfSteel == 0
	Set ShieldEffect to 0
	player.removespell BOSBulletProofingEffect
endif
; if shield off and ap > 1 and armour is equipt, turn it on,
if ShieldEffect == 0 && player.GetActorValue ActionPoints >= 1 && player.GetEquipped ArmorPowerBrotherhoodOfSteel == 1
	Set ShieldEffect to 1
	player.addspell BOSBulletProofingEffect
endif
end

 

My Bulletproofing effect consists of the following effects:

 

Increase small guns resistance effect:

 

-Value Modifier

-Assoc. Item = Small Guns

-Resist Value = Damage Resistance

-Flags = self, touch, target and recover

 

Enchantment effect data:

 

IncreaseSmallGunsRes

Range = Self

Magnitude = 75

 

That's the effect data in "Actor Effect" and this is the spell added to the armour when equipped...but as I said, I have NO idea if this would work referencing DR from a "Skill"...does anyone know if this would work?

 

Now another problem is, I got the effect "added"...but when i take the armour off, I don't get a "removed" message...now I was wondering a few things:

 

-Is it supposed to not show a removed message when "remove.spell" is called?

-Is my effect even working, is it even possible to set a "resistance" from an attribute

 

So yeah, and the other main issue I have is, I need to know how I can make damage done from me, deduct from AP's as well...as the base script shows on the other page, it's totally possible but I'd need to do a "check hp" check in the scripts...since the way i was told it could work is if i have me take damage, restore health, and then deduct from the AP. I know the basics, but not enough to pull it off, can you or anyone help me where to put which variable in the script?

Link to comment
Share on other sites

something like that. Bah...the above method won't work. There's no way to add "DR" from "small guns" doing it that way...

 

Seems the only way to do it would be to make the player invulnerable. Then take away damage that isn't there, they negate that damage from the AP's. I'll have to play around with it some more, can't work on it this week, uni work becons me.

Link to comment
Share on other sites

So if I understand what you are saying your script is having problems differentiating between small and big guns? A good way to see if a script is working is to add messages in it all over the place to let you know what it is doing, then remove the messages when you have it working.

 

I haven't had time to try this out either (busy with the silos death ring battle arena) if I find anything more out I will let you know.

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...