Custom Challenge Scripts?

Post » Tue Jul 12, 2011 9:08 am

Hi,

I've been working on making a challenge perk, but the type of challenge I need isn't listed in the drop-down type menu. One option it does offer in that menu though is the 'scripted challenge'.

Its granted that I'll have to write a script for this, but the challenge window doesn't give me an option to choose a specific script, so I'm guessing the exact challenge in question will have to be specified in the script itself somehow.

How do I do that?

Also, do I need to use a challenge, or can I substitute/bypass it entirely with a script? I ask the second question because I notice the challenge still asks for threshold and interval values, and I don't know how I would make my script work with these or if it would mess up my script if I didn't write it properly.

http://i858.photobucket.com/albums/ab145/Malrang/challengepic.jpg

Here is what I have so far.

scn CNMightyFistsChallengeint pLevelbegin GameMode	set pLevel to player.GetLevel	if pLevel == 2		;here is where I'm stuck, I don't know what to do with this after this point.


The intention of this script would be to reward a player with a perk when he reaches level two, and every level until level 30 (until his rank in that perk reaches 29).

Any help would be appreciated.
User avatar
MatthewJontully
 
Posts: 3517
Joined: Thu Mar 08, 2007 9:33 am

Return to Fallout: New Vegas