Need a Script, Please

Post » Mon Nov 03, 2014 5:42 am

Wondering if anyone out there could and would be willing to make a simple script that will restore health or magicka or fatigue on activate to be placed on an activator. I would like for it to restore only one of the three but be able to edit it for the others. Also to have it reset after 60 seconds so the player will have to wait. A message box would be nice as well, but not necessary, saying "you must wait for the ? to replenish" or something like that. Scripting is not something I have tried to learn yet and have not been able to locate such a script anywhere. Thanks.

User avatar
Jessie Rae Brouillette
 
Posts: 3469
Joined: Mon Dec 11, 2006 9:50 am

Post » Mon Nov 03, 2014 4:31 am

It's been a while since I did much Morrowind scripting, but I think this'll work.
Begin need_a_script_pleasefloat timePassedif ( OnActivate == 1 )	if ( timePassed <= 0 )		player->ModCurrentHealth 1000		set timePassed to 60	else		MessageBox "Please wait %.1f seconds." timePassed	endifendifif ( MenuMode == 0 )	if ( timePassed > 0 )		set timePassed to ( timePassed - GetSecondsPassed )	endifendifend
User avatar
YO MAma
 
Posts: 3321
Joined: Thu Dec 21, 2006 8:24 am


Return to III - Morrowind