trewbarton Posted November 12, 2010 Share Posted November 12, 2010 Is there a way to have a terminal menu item check for caps before running an item result script? Ex. Player wishes to buy a perk for 300 caps using the script player.AddPerk ???Perkplayer.RemoveItem caps001 300 DisablePlayerControlsStartQuest ImplantTimerQuestset GameHour to (GameHour + 3) How would you enforce the 300 cap stipulaation? p.s. I'm new at this Link to comment Share on other sites More sharing options...
Jagermh Posted November 12, 2010 Share Posted November 12, 2010 Is there a way to have a terminal menu item check for caps before running an item result script? Ex. Player wishes to buy a perk for 300 caps using the script player.AddPerk ???Perkplayer.RemoveItem caps001 300 DisablePlayerControlsStartQuest ImplantTimerQuestset GameHour to (GameHour + 3) How would you enforce the 300 cap stipulaation? p.s. I'm new at this When you enter the strip a securitron asks for a credit check, go into that code if you can and see how they did it. Link to comment Share on other sites More sharing options...
d1ng0d0g Posted November 20, 2010 Share Posted November 20, 2010 Is there a way to have a terminal menu item check for caps before running an item result script? Ex. Player wishes to buy a perk for 300 caps using the script player.AddPerk ???Perkplayer.RemoveItem caps001 300 DisablePlayerControlsStartQuest ImplantTimerQuestset GameHour to (GameHour + 3) How would you enforce the 300 cap stipulaation? p.s. I'm new at this When you enter the strip a securitron asks for a credit check, go into that code if you can and see how they did it. As I'm working on something that uses this exact thing, I might be of assistance. Set the Reference to player (which is located in the 188 base block), then GetItemCount as the Function. Count the item Caps001. Operator => and the value whatever you want it to be. On another line, the reference is subject. GetIsID (for the terminal itself). Although I'm not certain this is necessary, but the NPC's that use similar code use this as well. Hope I wasn't completely vague. Link to comment Share on other sites More sharing options...
Recommended Posts