kucingkucing Posted May 26, 2022 Posted May 26, 2022 hi, sorry for my bad English,in Skyrim, I create a new spell copied from the "transmute" spell,I need this kind of trigger to test my papyrus script,can someone tell me how to do this? note: for example just run this code: debug.messagebox("you run this papyrus script")I will appreciate any link, guide, or google the keyword you provide,thank you, have a nice day
DieFeM Posted May 27, 2022 Posted May 27, 2022 The way the transmute spell is triggered in Skyrim doesn't exist in Fallout 4, I mean, you can't fire an event with no weapon equipped. So you either need a weapon, an armor, activate some activator, trespass a trigger box, or something like that.Tell us the purpose of your script and you might get some appropiate answers. Have a nice day.
kucingkucing Posted May 27, 2022 Author Posted May 27, 2022 The way the transmute spell is triggered in Skyrim doesn't exist in Fallout 4, I mean, you can't fire an event with no weapon equipped. So you either need a weapon, an armor, activate some activator, trespass a trigger box, or something like that.Tell us the purpose of your script and you might get some appropiate answers. Have a nice day. thank you for the reply DieFeM, I really appreciate it,so I need a trigger, any activator is ok as long I do not open the "cellview",my real purpose is to create a script that does auto craft items, for example, "creating jet anywhere, anytime"(I have not yet accessed the papyrus script, so high change this script will error): if player.getitemcount feltilizer >= player.getitemcount plastic smaller = player.getitemcount plastic else smaller = player.getitemcount feltilizer endif player.removeitems fertilizer smaller player.removeitems plastic smaller player.additem jet smaller player.addexp int*0.1 * smaller;<= just assume, i not study this yetI have created excel data for what I need to auto crafting,but, before I can make that script, i need to get the papyrus working first, after I read your comment, I need equipment, and some area triggers,it would be nice if I can use that detonator from new vegas,but any activator is acceptable in this situation thank you again for the reply, have a nice day
DieFeM Posted May 27, 2022 Posted May 27, 2022 I think the easiest way is using a potion, you could add another one to the inventory once consumed.A potion uses a magic effect, and the magic effect uses the ActiveMagicEffect script, it has 2 main events: OnEffectStart and OnEffectFinish. I would suggest adding your code to the OnEffectStart event. On the other hand, your script would work in the console, but papyrus is a bit different in fallout 4 and SE, so you might need to search for the equivalent functions in the wiki.
kucingkucing Posted May 27, 2022 Author Posted May 27, 2022 I think the easiest way is using a potion, you could add another one to the inventory once consumed.A potion uses a magic effect, and the magic effect uses the ActiveMagicEffect script, it has 2 main events: OnEffectStart and OnEffectFinish. I would suggest adding your code to the OnEffectStart event. On the other hand, your script would work in the console, but papyrus is a bit different in fallout 4 and SE, so you might need to search for the equivalent functions in the wiki.thank you again, for the reply,after I read your reply, I remember that; lot of modders use grenades as script activator,I will try this method to trigger my script, thank you for information,have a nice day
Recommended Posts