Using "IsPlayerTagSkill

Post » Fri May 27, 2011 10:58 am

Oops hit enter...

Title: Using "IsPlayerTagSkill" in a script


Trying to make a script to be inserted into a quest which will determine which tag skills the player is using and assign perks for said tagged skills.

I havent scripted since Fallout 3 was barely a few months old and frankly I need some kind scripter's help :foodndrink:

Below is an example of what I did. Just a simple add perk scripting. but I know I am forgetting my conditionals. I know "elseif" is not appropriate but I can't remember how to script AND =P Also, I can't seem to get "IsPlayerTagSkill" to work.

Please help and thanks in advance.


scn TagBonus   	Begin GameMode		if player.IsPlayerTagSkill Barter			player.AddPerk TagBarter		end if		if player.IsPlayerTagSkill EnergyWeapons			player.AddPerk TagEnergy		end if		if player.IsPlayerTagSkill Explosives			player.AddPerk TagExplosives		end if		if player.IsPlayerTagSkill Guns			player.AddPerk TagGuns		end if		if player.IsPlayerTagSkill Lockpick			player.AddPerk TagLockpick		end if		if player.IsPlayerTagSkill Medicine			player.AddPerk TagMedicine		end if		if player.IsPlayerTagSkill MeleeWeapons			player.AddPerk TagMelee		end if		if player.IsPlayerTagSkill Repair			player.AddPerk TagRepair		end if		if player.IsPlayerTagSkill Science			player.AddPerk TagScience		end if		if player.IsPlayerTagSkill Sneak			player.AddPerk TagSneak		end if		if player.IsPlayerTagSkill Speech			player.AddPerk TagSpeech		end if		if player.IsPlayerTagSkill Survival			player.AddPerk TagSurvival		end if		if player.IsPlayerTagSkill Unarmed			player.AddPerk TagUnarmed		end if	End

User avatar
Bambi
 
Posts: 3380
Joined: Tue Jan 30, 2007 1:20 pm

Post » Fri May 27, 2011 9:25 am

I'm not really sure what you are trying to ask. The IsPlayerTagSkill function does work. You can test it in the console.
User avatar
Queen of Spades
 
Posts: 3383
Joined: Fri Dec 08, 2006 12:06 pm

Post » Fri May 27, 2011 11:50 am

I'm not really sure what you are trying to ask. The IsPlayerTagSkill function does work. You can test it in the console.



I imagine it works. I am saying I don't know how to use it. Could someone please write an example for me
User avatar
David Chambers
 
Posts: 3333
Joined: Fri May 18, 2007 4:30 am

Post » Fri May 27, 2011 11:16 am

I imagine it works. I am saying I don't know how to use it. Could someone please write an example for me



or better yet, could someone look at my script and fix it =)
I would be really appreciative of any help
User avatar
sunny lovett
 
Posts: 3388
Joined: Thu Dec 07, 2006 4:59 am

Post » Fri May 27, 2011 3:41 am

Ok, looks like there are two problems (I think, I've never actually used the IsPlayerTagSkill command). From what I can tell looking at the GECK wiki, it doesn't seem to need the "player." part. The second is that endif is one word.

So your script should look more like this:

scn TagBonus   	Begin GameMode		if IsPlayerTagSkill Barter			player.AddPerk TagBarter		endif               ...


And, if you did script with the FO3 GECK, you may have noticed that the NV GECK doesn't give any debug info (maddeningly). Luckily, someone calling themselves Ned came up with a http://www.mdn.fm/files/217839_cobrz/ScriptError1.zip.
User avatar
TOYA toys
 
Posts: 3455
Joined: Sat Jan 13, 2007 4:22 am


Return to Fallout: New Vegas