Script issue

Post » Fri May 27, 2011 2:05 am

Hey all. Working on a little mod for the Lucky 38 suite. Wanted to add things from F3 like medical treatment, and I also hated the lack of an ammo bench. So I created an additional room. Everything has gone brilliantly and for my first mod I think its great. Then I decided to add the random brewing from My First Laboratory in F3. And apparently, my scripting skills are horrible. Can someone identify my issue here? I made sure that all my messages, and the item I'm adding, are valid....

scn ugBrewAwaySCRIPT

short ugbrew
float brewtime

begin onactivate

if ( ugbrew < 1 )
showmessage ugbrewstart
set ugbrew 1
set brewtime to GameDaysPassed
elseif ( ugbrew == 1 )
if ( GameDaysPassed - brewtime >= 2 )
showmessage ugbrewdone
Player.AddItem LootChemsAll100 1
set brewtime to 0
set ugbrew 0
elseif ( GameDaysPassed - brewtime < 2 )
showmessage ugbrewing
endif
endif

end



If someone can help me get this working, the mod will be ready to upload.
User avatar
Hayley O'Gara
 
Posts: 3465
Joined: Wed Nov 22, 2006 2:53 am

Post » Fri May 27, 2011 11:16 am

Looks like you need more than a script. Looks like the script modifies 2 globals.
User avatar
CxvIII
 
Posts: 3329
Joined: Wed Sep 06, 2006 10:35 pm


Return to Fallout: New Vegas