Jump to content

Scripting problems with GetItemCount and form list


Recommended Posts

I've been trying to create this script that checks to see if you have four items than gives you another for purchasing all of them. However, I've run into a problem. The script is invalid for some reason, even though I have another script in the same mod that's almost exactly like this one. It uses the "if player.GetItemCount" thing with a form list.

 

Here's the code:

 

scn 00WBMegaScript

short doOnce;

Begin GameMode
if doOnce == 0
	set doOnce to 1
	if player.GetItemCount 00WBMegaFormList > 0
		player.additem 00WBMega 1
endif
end

Begin GameMode

if player.GetItemCount 00WBMega > 0
	player.cios 00WBMegaEffect
	player.setweaponhealthperc 100
endif
end

 

Is it a problem with the form list? I have another script that transforms one item to another, then uses the item that was transformed to do almost the same thing that this one is supposed to do, except that one doesn't include a form list. Please forgive me if this is completely wrong, I haven't been scripting for any longer than about a week.

 

Before anyone asks, it's with the 1.3 GECK, and I don't think GECK PowerUp wors with 1.3.

Edited by Delikatessen
Link to comment
Share on other sites

geck powerup for 1.3

http://www.newvegasnexus.com/downloads/file.php?id=41642

 

try setting to check for the items by themselves and see if that works. might also try >= 1 and see if that works (not sure why that would make a difference but one never knows with our GECK)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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