1: I want something to happen if the players health drops under 30%. How do i do that? My problem with this are two things: getHealthPercentage does not work, how can i get the percentage of the casters health? Second how can i have the spell keep an eye on the players health? If functions only work once, i would need it to permanently check the health while the spell is active.In the worst case i only need the function to check the players health and the player needs to cast the spell when he has under 30% health, that would be inconvenient though.
2: Rather the same as 1, just that here i don't want to check the players health, but want something to be triggered when the player kills a (friendly) NPC. I suppose it would work the same, the only thing i don't know the function for checking the player killing a (friendly) NPC.
3: I noticed a lot of my ideas, like 1 and 2 fail on the fact that i am missing a function to check it, most commands like Dispel and Cast i know from other scripts, is there a way to check what functions a Object(for example "caster" ) can do? Like Caster.getLevel() , Caster.Addspell and so on. Can i somewhere check what a object can do? I got these infos from the Creation Kit Wiki and other Scripts, but the more advanced my projects get, the less the infos are sufficient.
PS: Is there a console command to let me read a globalvariable in-game?