Jump to content

Quick modding question


Danny159

Recommended Posts

You'll need a script that will trigger the effect if you kill something and then attach it to your piece of armour. Something like:

Scn Your Script Name Here

short iKillCount
short bSwitch

begin GameMode

	if bSwitch == 0
		set iKillCount to GetPCMiscStat "Total Things Killed"
		set bSwitch to 1
	elseif iKillCount < GetPCMiscStat "Total Things Killed"
		Player.AddSpell ;Your Actor Effect Here
		set bSwitch to 1
	endif
end

Good luck! :smile:

Edited by Jojash
Link to comment
Share on other sites

What's going wrong? Did you attach that script to your armour? If you did, did you change the necessary parts of the script? (The name, I've left for you to change to something relevant so that you can find it more easily and the actor effect I've not included, since that will be something you've made (to add the effect) that you need to provide the ID for.)

Edited by Jojash
Link to comment
Share on other sites

It doesn't want to save the script...

Scn Killscript

short iKillCount
short bSwitch

begin GameMode

	if bSwitch == 0
		set iKillCount to GetPCMiscStat "Total Things Killed"
		set bSwitch to 1
	elseif iKillCount < GetPCMiscStat "Total Things Killed"
		Player.AddSpell IncreaseDamageResistance
		set bSwitch to 1
	endif
end
Edited by Danny159
Link to comment
Share on other sites

That script saves for me, and the only differing factor would be the actor effects used.

 

Are you trying to use a Base Effect? If you are, you'll need to incorporate it into an actor effect, and then use the name of that. Making an actor effect is pretty simple, just go to Game Effects Actor Effects, and make a new entry (right-click under Editor ID and select "new").

 

From there, you need to add a base effect. I notice that you're trying to add "IncreaseDamageResistance", New Vegas works differently from Fallout 3 in that, DR, is essentially no longer in use. Instead of adding "IncreaseDamageResistance", add ""IncreaseDamageThreshold" instead. After you've added your effect you can set how long the effect lasts before disappearing, which will allow you to set it for thirty seconds.

 

After you're done, go back to your script and change "IncreaseDamageResistance" to the name of the actor effect and you should be good to go. :smile:

Edited by Jojash
Link to comment
Share on other sites

  • Recently Browsing   0 members

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