Yes. I'm a script noob. But I really wanted something in the game that no one else made. Unfortunately, one obscure error is preventing me from enjoying the game the way I want to.
"Specs"
Morrowind with Bloodmoon 1.0.6.1820
MGE 3.8
MCP 1.6
MWSE 0.9.4.0
Mods:
Better Heads
More Classes
Passive Healthy Wildlife
Carry Your Bed Roll
Atmospheric Sound Effects
Magicka Regen v20
Dodge v21
Better Bodies
Aragorn Monk
Slof's Better Beasts
Quick Char
Wolvens 3.0
New Khajit Diversity
No Non-diseased annoyances
No Non-blighted annoyances
Westly Presents Half Races of Tamirel
AAG Status Bars no-home
Wolf Companion
Now onto the script:
Begin 1a_healringshort OnPCEquipif ( MenuMode == 1 ) returnendifif ( OnPCEquip == 0 ) returnendifif ( OnPCEquip == 1) Set OnPCEquip to 0 StartScript 1a_healring2endifEndBegin 1a_healring2 if ( player->GetFatigue < 50 ) MessageBox "You don't have enough fatigue to heal Moro!!" StopScript 1a_healring2 endif if ( player->GetFatigue >= 50 ) 1A_comp_wolfSpot->ModCurrentHealth 50 player->ModCurrentFatigue -50 StopScript 1a_healring2 endifEnd
Ok, this is two scripts in one box. But, whatever. The error is that ModCurrentHealth just does not work. I've done a lot of troubleshooting, and here are the results, so you do not have to waste time asking questions:
Does the script even run? Uh huh. It takes my fatigue. And just once when I equip the ring.
Did you get the creature's ID right? Yep! I literally copied and pasted it from the creature edit window.
Commas? It makes no difference.
Why the stop scripts? Otherwise it will loop.
Do the commands work in the console? They absolutely do.
What are you using to monitor the health? At-A-Glance Companion Status Bar. It's not wrong, for I use GetHealth as well, and the image is reasonably close to the output.
Did you try using the creature's eight digit number? Yup. But it gave me a compile error.
Are there more than one of this creature? Not anymore.
You tried debugging the script? Oh please tell me if there are any debuggers out there.
Did you try using a new copy of that ring? Sure did, using the command console.
You did restart the game, didn't you? Yes probably about 50 times on this night alone.
O wise ones, please help me solve this dilemma. *orz*