js303 Posted October 11, 2017 Share Posted October 11, 2017 (edited) I'm working on an update for a mod and I'd like a certain food item to give you a misc toy after you eat it... I go into creation kit, select the item to edit, and I can see where you can add effect, so I right click to add a new effect but I'm not sure what to do after that in the item edit window, in the bottom left corner there is an option to change Item Equip, if you select OTHER there is a pulldown menu that lets you select MiscToy, but selecting that did not give me any item after eating the food. So my guess is I have to add an effect, any help is appreciated I'm going to guess it's a script similar to the nuka cola bottle giving you caps so i'm going to mess around with that for a bit Edited October 11, 2017 by js303 Link to comment Share on other sites More sharing options...
Macrophobic Posted October 12, 2017 Share Posted October 12, 2017 (edited) Actually you could even use the same script. I've just tested it and it works. Under "Magic/Magic Effect" find "NukaColaBottlecapAdder" Duplicate it and rename the copy to, let's say, "EmptyVodkaBottleAdder" Double-click and change the name "Bottlecap Collector" to "Empty Vodka Bottle Collector" In the bottom-right dialog you can see the script's name: "NukaColaBottlecapAdderSCRIPT". Now click "Properties". Change "Pick Object" from "Caps001" to some other item from the dropdown list, like "BottleEmptyVodka01" Now go to "Magic/Potion", find "Vodka" and add a new effect: right-click "New" and select "EmptyVodkaBottleAdder" from the dropdown list :smile: Edited October 12, 2017 by MeetTheFuture Link to comment Share on other sites More sharing options...
js303 Posted October 13, 2017 Author Share Posted October 13, 2017 (edited) Actually you could even use the same script. I've just tested it and it works. Under "Magic/Magic Effect" find "NukaColaBottlecapAdder" Duplicate it and rename the copy to, let's say, "EmptyVodkaBottleAdder" Double-click and change the name "Bottlecap Collector" to "Empty Vodka Bottle Collector" In the bottom-right dialog you can see the script's name: "NukaColaBottlecapAdderSCRIPT". Now click "Properties". Change "Pick Object" from "Caps001" to some other item from the dropdown list, like "BottleEmptyVodka01" Now go to "Magic/Potion", find "Vodka" and add a new effect: right-click "New" and select "EmptyVodkaBottleAdder" from the dropdown list :smile: The mod I'm working on is "Corporate Wasteland" and what i actually want to happen is when You eat a McDonald's Happy Meal, Cap'n Crunch or Cracker Jack, a random toy will spawn... with your help I was able to create 3 scripts for 3 different toys, Car/Alien/Rocketship..It would be cool if I could make a script with those 3 toys and you get one of the three toys... if there's a way to do that maybe let me know, but thank you for your help! Edited October 13, 2017 by js303 Link to comment Share on other sites More sharing options...
JonathanOstrus Posted October 13, 2017 Share Posted October 13, 2017 Actually you could even use the same script. I've just tested it and it works. Under "Magic/Magic Effect" find "NukaColaBottlecapAdder" Duplicate it and rename the copy to, let's say, "EmptyVodkaBottleAdder" Double-click and change the name "Bottlecap Collector" to "Empty Vodka Bottle Collector" In the bottom-right dialog you can see the script's name: "NukaColaBottlecapAdderSCRIPT". Now click "Properties". Change "Pick Object" from "Caps001" to some other item from the dropdown list, like "BottleEmptyVodka01" Now go to "Magic/Potion", find "Vodka" and add a new effect: right-click "New" and select "EmptyVodkaBottleAdder" from the dropdown list :smile: The mod I'm working on is "Corporate Wasteland" and what i actually want to happen is when You eat a McDonald's Happy Meal, Cap'n Crunch or Cracker Jack, a random toy will spawn... with your help I was able to create 3 scripts for 3 different toys, Car/Alien/Rocketship..It would be cool if I could make a script with those 3 toys and you get one of the three toys... if there's a way to do that maybe let me know, but thank you for your help! I don't understand why you'd need 3 different scripts. Unless they're poorly designed you should be able to use one script and just chance the spawnable item property as desired. You could even put the 3 items (or however many you want) in a leveled list. Then give your script the leveled list so it doesn't require you to change the script at any point. Then you can just add or remove items from the leveled list as desired. You could even do multi level lists to get something like 33% chance of a beer, 33% chance of water, 33% chance of vodka (or insert type of toys), then each of those grabs from a sub list of items specific to that class. Using drinks as an example but it could be any item really. You could even have it do 33% chance of clothing, 33% chance of a drink, 33% chance of misc items. Link to comment Share on other sites More sharing options...
js303 Posted October 13, 2017 Author Share Posted October 13, 2017 (edited) Actually you could even use the same script. I've just tested it and it works. Under "Magic/Magic Effect" find "NukaColaBottlecapAdder" Duplicate it and rename the copy to, let's say, "EmptyVodkaBottleAdder" Double-click and change the name "Bottlecap Collector" to "Empty Vodka Bottle Collector" In the bottom-right dialog you can see the script's name: "NukaColaBottlecapAdderSCRIPT". Now click "Properties". Change "Pick Object" from "Caps001" to some other item from the dropdown list, like "BottleEmptyVodka01" Now go to "Magic/Potion", find "Vodka" and add a new effect: right-click "New" and select "EmptyVodkaBottleAdder" from the dropdown list :smile: The mod I'm working on is "Corporate Wasteland" and what i actually want to happen is when You eat a McDonald's Happy Meal, Cap'n Crunch or Cracker Jack, a random toy will spawn... with your help I was able to create 3 scripts for 3 different toys, Car/Alien/Rocketship..It would be cool if I could make a script with those 3 toys and you get one of the three toys... if there's a way to do that maybe let me know, but thank you for your help! I don't understand why you'd need 3 different scripts. Unless they're poorly designed you should be able to use one script and just chance the spawnable item property as desired. You could even put the 3 items (or however many you want) in a leveled list. Then give your script the leveled list so it doesn't require you to change the script at any point. Then you can just add or remove items from the leveled list as desired. You could even do multi level lists to get something like 33% chance of a beer, 33% chance of water, 33% chance of vodka (or insert type of toys), then each of those grabs from a sub list of items specific to that class. Using drinks as an example but it could be any item really. You could even have it do 33% chance of clothing, 33% chance of a drink, 33% chance of misc items. I would try but I'm not sure yet on how to do any of that... all I did is what you said in those directions and i assigned 1 "add toy" script to each food item. So the Happy meal will always give you a toy car, Cap'n Crunch will always give you a toy alien and Cracker Jack will always give you a toy rocketship... there are 3 or 4 more toys i could have added , i could put them all in one list and have one show up at random chance but I don't know how to do any of that. Edited October 13, 2017 by js303 Link to comment Share on other sites More sharing options...
Recommended Posts