Adding perks via script, how to be sure it works?

Post » Tue Oct 19, 2010 4:23 pm

Hello, with sequence "OnEquip" I am adding custom perk, however not sure if it really works (it decreases enemy's critical chance). I did additionally option "Activate choice" (=> run immediately and so on) with ShowMessage >"popup onscreen while active"< however message is not appearing. Does the perk is inactive still or "ShowMessage" instruction is not working this way? How to check ingame if perk is running or not?

Adding "ShowMessage" option to script works however it is not prove for perk being active.
User avatar
brandon frier
 
Posts: 3422
Joined: Wed Oct 17, 2007 8:47 pm

Post » Tue Oct 19, 2010 2:24 pm

Hello, with sequence "OnEquip" I am adding custom perk, however not sure if it really works (it decreases enemy's critical chance). I did additionally option "Activate choice" (=> run immediately and so on) with ShowMessage >"popup onscreen while active"< however message is not appearing. Does the perk is inactive still or "ShowMessage" instruction is not working this way? How to check ingame if perk is running or not?

Adding "ShowMessage" option to script works however it is not prove for perk being active.

Go into console mode and type:
Player.HasPerk xxFormID


Where xx = your mod load order and FormID is the number the Geck assigned to your perk.

Also note that if you are attempting to add a perk to an NPC or other actor, the perk won't work.
User avatar
Bloomer
 
Posts: 3435
Joined: Sun May 27, 2007 9:23 pm

Post » Tue Oct 19, 2010 12:57 pm

Go into console mode and type:
Player.HasPerk xxFormID


Where xx = your mod load order and FormID is the number the Geck assigned to your perk.

Also note that if you are attempting to add a perk to an NPC or other actor, the perk won't work.



Thanks.

How about ShowMessage instruction in ActivateChoice/ Why it is not working?

I am interested also in why i cannot see perk's description in Pipboy, while it is not hidden (nor playable as well).
User avatar
Melung Chan
 
Posts: 3340
Joined: Sun Jun 24, 2007 4:15 am

Post » Tue Oct 19, 2010 11:28 am

How about ShowMessage instruction in ActivateChoice/ Why it is not working?

I am interested also in why i cannot see perk's description in Pipboy, while it is not hidden (nor playable as well).

You could start by posting what your script it.

For the second question you could tell us the settings you used on the perk.
User avatar
Music Show
 
Posts: 3512
Joined: Sun Sep 09, 2007 10:53 am

Post » Tue Oct 19, 2010 5:43 pm

You could start by posting what your script it.

For the second question you could tell us the settings you used on the perk.

Perk is just 1 rank ability that adds "Calculate Enenemy's Critical Chance" (value multi = 0.95) and the second is "Activate choice" > run immediately> Show Message XXX

Main script attached to item is:

Begin onEquip
AddPerk XXX
End

BeginOnUnequip


Even if it is temporary only - shouldn't the description of the perk be visible in pipboy (it is not marked sa hidden)?
User avatar
Ian White
 
Posts: 3476
Joined: Thu Jul 19, 2007 8:08 pm

Post » Tue Oct 19, 2010 2:33 pm

Okay... Perhaps there is a problem with language translation here.

1. What settings did you put on your perk?
I have all the check boxes turned OFF. None of them are check marked.
Trait
Playable
Hidden

2. When you post your script, you 'copy it all' by hilighting it and pressing Cntrl + C to copy it. You can then paste it in a reply post. Adding the 'code' box around it makes it look nicer.

scn myPerkScriptbegin OnEquip	player.AddPerk myRadiationRegen00Perkendbegin OnEquip	player.RemovePerk myRadiationRegen00Perkend

User avatar
Rich O'Brien
 
Posts: 3381
Joined: Thu Jun 14, 2007 3:53 am

Post » Tue Oct 19, 2010 9:48 am

player.AddPerk myRadiationRegen00Perk

Well. i just shortened the full script's content. It looks exactly the same as yours apart from prefix "player." Perk is as well unmarked at all.

Do you believe that that missing prefix (yeah i know Perk goes only to Player) is the reason of the problem that looks like exist? I am not sure, however will check.

My purpose is to add ability to headgears to be critical chance lowering while equipped instead of those stupid Perception stuff. The only way is to add special Perk (due to command "Calculate Enemys critical Chance" existing only there) however this one method is not satisfying due to "player only" limit. is there a way to make such spell/ability to be regular?
User avatar
Taylrea Teodor
 
Posts: 3378
Joined: Sat Nov 18, 2006 12:20 am

Post » Tue Oct 19, 2010 2:55 am

Just to go to ur original question.
I added the Stealthboy effect through an ability to my perks to test them.

Makes it pretty obvious if they are working or not.

Or to make it easier increase ur AP to godly proportions, thats only a quick vats check away.

Then remove.

-Exo
User avatar
IM NOT EASY
 
Posts: 3419
Joined: Mon Aug 13, 2007 10:48 pm


Return to Fallout 3