foamyesque Posted September 11, 2018 Share Posted September 11, 2018 I mostly just use the Creation Kit wiki: https://www.creationkit.com/index.php?title=Spellhttps://www.creationkit.com/index.php?title=Magic_Effects I'm not sure how useful that (or this) will be through the language barrier, but hopefully it will help: When you open up the Creation Kit, scroll down until you find the Magic Effects type of form (it will be under Magic, on the left side bar). Create a new one. Give it a name. Choose the casting type Constant Effect and the delivery type Self. Tick 'No Duration'. Then close it. Then, go to the Spells type of form, also under Magic. Create a new one. Give it a name. Choose Ability for the type, Constant Effect for the casting type, and Self for the delivery type. Tick 'Disallow Spell Absorb' and 'Ignore Resistance', so that it will always work even if the actor with the ability has magic resist gear/abilities. Right click on the empty list of effects at the right of the Spell window and choose 'New'. This will bring up a window called Effect Items. Choose your magic effect from the dropdown list at the top left. Right click on the empty Conditions list on the right hand side of the Effect Item window. Choose New.For the Condition Function, choose GetHealthPercentage. For the Comparison, choose "<" or "<=" (less than, or less than or equal to, depending on what you want to do). For the value, type 0.5, for 50%. Hit OK. Close your way out of the Spell. Go back to the Magic Effect you created. In the bottom right hand side of the Magic Effect window, you can add scripts to it. Choose Add, then create a new script. When the script window opens, add your code. All you want to do, you said, was add a notification: Event OnEffectStart(Actor akTarget, Actor akCaster) Debug.Notification("Your health is below 50%!") EndEvent Save and compile the script, then close out the Magic Effect as well. The next step is giving the ability to the player. The best way to do this is to create a Quest. Then, go to the Quest Alias tab. Right click on the empty Alias list and choose New Reference Alias. Give it a name. For the fill type, choose Specific Reference. Click on the Forced Reference button directly to the right. Choose the player from the list of references in the window that pops up (it should be the only one listed). There is a row of empty lists part-way down the Alias page: Alias Faction, Alias Spells, Alias Keywords, Alias Package Data, Right click on the Alias Spells list and choose "Add". You should then be able to find the new ability in the dropdown list that pops up. Choose it. Then start hitting 'OK" to close out and save the quest. Then save the mod. When the *.esp file is enabled, the notification message should now appear every time the player's health drops below 50%. Link to comment Share on other sites More sharing options...
virginharvester Posted September 14, 2018 Author Share Posted September 14, 2018 I mostly just use the Creation Kit wiki: https://www.creationkit.com/index.php?title=Spellhttps://www.creationkit.com/index.php?title=Magic_Effects I'm not sure how useful that (or this) will be through the language barrier, but hopefully it will help: When you open up the Creation Kit, scroll down until you find the Magic Effects type of form (it will be under Magic, on the left side bar). Create a new one. Give it a name. Choose the casting type Constant Effect and the delivery type Self. Tick 'No Duration'. Then close it. Then, go to the Spells type of form, also under Magic. Create a new one. Give it a name. Choose Ability for the type, Constant Effect for the casting type, and Self for the delivery type. Tick 'Disallow Spell Absorb' and 'Ignore Resistance', so that it will always work even if the actor with the ability has magic resist gear/abilities. Right click on the empty list of effects at the right of the Spell window and choose 'New'. This will bring up a window called Effect Items. Choose your magic effect from the dropdown list at the top left. Right click on the empty Conditions list on the right hand side of the Effect Item window. Choose New.For the Condition Function, choose GetHealthPercentage. For the Comparison, choose "<" or "<=" (less than, or less than or equal to, depending on what you want to do). For the value, type 0.5, for 50%. Hit OK. Close your way out of the Spell. Go back to the Magic Effect you created. In the bottom right hand side of the Magic Effect window, you can add scripts to it. Choose Add, then create a new script. When the script window opens, add your code. All you want to do, you said, was add a notification: Event OnEffectStart(Actor akTarget, Actor akCaster) Debug.Notification("Your health is below 50%!") EndEvent Save and compile the script, then close out the Magic Effect as well. The next step is giving the ability to the player. The best way to do this is to create a Quest. Then, go to the Quest Alias tab. Right click on the empty Alias list and choose New Reference Alias. Give it a name. For the fill type, choose Specific Reference. Click on the Forced Reference button directly to the right. Choose the player from the list of references in the window that pops up (it should be the only one listed). There is a row of empty lists part-way down the Alias page: Alias Faction, Alias Spells, Alias Keywords, Alias Package Data, Right click on the Alias Spells list and choose "Add". You should then be able to find the new ability in the dropdown list that pops up. Choose it. Then start hitting 'OK" to close out and save the quest. Then save the mod. When the *.esp file is enabled, the notification message should now appear every time the player's health drops below 50%.just read your reply it seems terifiying,i think i dont have confident do it,for now i will use "RegisterForSingleUpdate()" that you fix for me before,anyway thanks alot for both info Link to comment Share on other sites More sharing options...
Recommended Posts