Jump to content

NPC script help


SatanSoldier

Recommended Posts

I'm having a hard time finding any documentation on the scripting language, so I'm flying blind.

The geck not reporting errors is Not helping, if you know how to fix that, PLEASE let me know.

 

Anyway, I'm trying to make it so that Veronica wears her formal wear in the lucky 38. I got a preliminary version running, but it was limited, and I wrote this one so that I could expand on it.

It's not compiling and I'm not seeing the error, so if someone with experience could help me out and/or give some tips, I'd be grateful.

 

short bAddedHat
short bInFormalWear

BEGIN GameMode
if (VeronicaREF.GetInCell Lucky38SuiteFloor22)
	if (VeronicaREF.GetEquipped OutfitVeronicaRobes != 1)
		if ((VeronicaREF.GetEquipped OutfitFormalWear != 1)&&(VeronicaREF.GetEquipped ArmorWhiteGloveSociety != 1))
			if (VeronicaREF.GetItemCount OutfitFormalWear > 0)
				VeronicaREF.EquipItem OutfitFormalWear
				set bInFormalWear to 1
			elseif (VeronicaREF.GetItemCount ArmorWhiteGloveSociety > 0)
				VeronicaREF.EquipItem ArmorWhiteGloveSociety
			endif
		endif
	else
		VeronicaREF.EquipItem OutfitVeronicaRobes
	endif
	if (VeronicaREF.GetEquipped Weap10mmPistolVeronica != 1)
		VeronicaREF.EquipItem Weap10mmPistolVeronica
	endif
	if ((VeronicaREF.GetItemCount GamblerMHat02 > 0)&&(bInFormalWear == 1))
		VeronicaREF.EquipItem GamblerMHat02
	elseif ((VeronicaREF.GetItemCount GamblerMHat02 == 0)&&(bInFormalWear == 1))
		VeronicaREF.AddItem GamblerMHat02 1
		set bAddedHat to 1
		VeronicaREF.EquipItem GamblerMHat02
	elseif ((VeronicaREF.GetEquipped OutfitVeronicaHood == 0)&&(bInFormalWear == 0)
		VeronicaREF.EquipItem OutfitVeronicaHood
	endif
else
	if ((bAddedHat)&&(VeronicaREF.GetItemCount GamblerMHat02 > 0)
		VeronicaREF.RemoveItem GamblerMHat02 1
	endif
	if (bInFormalWear)
		set bInFormalWear to 0
		VeronicaREF.evp
	endif
endif
END

Link to comment
Share on other sites

  • Recently Browsing   0 members

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