JustAnotherModder93 Posted August 4, 2015 Share Posted August 4, 2015 (edited) Hi all, I'm very new to scripting and modding in general, but was wondering if anyone could help me with a script.I'm trying to make those damn lottery tickets actually useful in the game, by putting in a safe that can only be unlocked by having one of these lottery tickets.Or perhaps having a character in the game who will give you items in exchange for one of the lottery tickets.Any help would be greatly appreciated. EDITGoing to retryIf Player.HasItem ObjectID 1 UnlockEndIf I think I tried it previously and it didn't work, but I'll put it in again. EDIT 2I have tried every variation of the above "script" I can think of, and it just won't save.Begin GameModeIf Player.GetItemCount NiptonLotteryTicket ==1 UnlockEndIf End ^ Just one of the many variations. Edited August 4, 2015 by JustAnotherModder93 Link to comment Share on other sites More sharing options...
MartinPurvis Posted August 4, 2015 Share Posted August 4, 2015 Been a while since I've done any scripting but try adding this script to the safe you want it to affect. SCN ScriptName Begin OnActivateIf Player.GetItemCount NiptonLotteryTicket >= 1 Unlock Player.RemoveItem NiptonLotteryTicket 1Else ReturnEndifEnd Link to comment Share on other sites More sharing options...
JustAnotherModder93 Posted August 6, 2015 Author Share Posted August 6, 2015 Been a while since I've done any scripting but try adding this script to the safe you want it to affect. SCN ScriptName Begin OnActivate If Player.GetItemCount NiptonLotteryTicket >= 1 Unlock Player.RemoveItem NiptonLotteryTicket 1Else ReturnEndif EndStill nothing, thanks for trying though Link to comment Share on other sites More sharing options...
Recommended Posts