I thought, whenever a weapon or armor gets damaged by something, its life will be set again to 100%
But there are several problems and so i need your help
This is just a prealpha because i'm new to MW Scripts. I use the http://www.uesp.net/morrow/editor/mw_cscommands.shtml#set
begin a_selfrepairshort stateif (state == 0) if (OnActivate == 1) if ( player->GetHealthGetRatio < 0.5 ) ; player->SetHealth, 1.1 set player->health to, 1.1 endif endifendifend
What does this test script do?
Whe i click on an object with this script, it checks if my current health is below 50% and should fill it up to 100% (thats not working). I can only add fixed live instead 100%
So i've the following questions:
- How do i add 100% (float) health instead fixed values or wrong values (now he sets life to 1/1)
- How do i make this script global because later it should work for all equipment and by OnActivate
- Finally how do i get a weapon or armor in this script instead of player because i dont want to add "this_specific_armor" for example