Delikatessen Posted May 8, 2011 Share Posted May 8, 2011 (edited) 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 May 8, 2011 by Delikatessen Link to comment Share on other sites More sharing options...
majinshinsa Posted May 9, 2011 Share Posted May 9, 2011 geck powerup for 1.3http://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 More sharing options...
Delikatessen Posted May 9, 2011 Author Share Posted May 9, 2011 Thanks, I'll try it. I've run into a few problems with the 1.3 GECK that were just insane. Link to comment Share on other sites More sharing options...
Delikatessen Posted May 9, 2011 Author Share Posted May 9, 2011 (edited) Ok, please ignore this thread now. I didn't realize I had to add two EndIf blocks. Edited May 9, 2011 by Delikatessen Link to comment Share on other sites More sharing options...
Recommended Posts