Staredit Network

Staredit Network -> UMS Assistance -> EUD (God's Triggers) Question
Report, edit, etc...Posted by DorkeyDear on 2005-08-06 at 19:55:02
I was having a bit of trouble with Memcalc. I wanted to change a unit's maximum HP while in game so I did everything needed. The only thing is the User Input (The stuff that you want to change / choose to change. {Such as Unit's Shield Toggle, there is 00, 01, and 02.}). When it tells me what does what, it says this "Combined value of bytes 2-4 (green highlight) equal to max HP total (00) 01 00 00 = 1 HP, (00) FF FF FF = 16777215 HP." and I have no idea what it means. What would I do if I wanted the unit's max HP to be 25, what would I put in? (Hexadecimal if possible please)
(If this helps, I start at 20 health.)

I tried many different things to get 25 HP, and none seemed to work.

Note: Putting in 25 DOES NOT WORK! So please don't tell me to do that.
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-06 at 20:47:28
25 is 19 in hex. To get a 25/25 HP unit, you want you byte to be:

00 19 00 00

So you want to set to 1900 (hex).
Report, edit, etc...Posted by Deathknight on 2005-08-06 at 22:33:30
You'd set its hp to 6400(dec). Make sure the player you're setting the extended unit for is not in the range of player 9-12.
Report, edit, etc...Posted by Anonymous..... on 2005-08-07 at 00:04:16
Eh, how do we know what =s what in hexadecimal? confused.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-07 at 00:52:19
Use Windows Calculator (Start>Programs>Accessories>Calculator) in Scientific mode. You can convert from hex to dex to octal to binary.

Alternatively, you can use your brain.
Report, edit, etc...Posted by DorkeyDear on 2005-08-07 at 11:34:10
Well, because the new program came out or whatever (even tho its for ppl who cant work with memcalc well or whatever reason) im probally going to use that. This way, I will have none, or hardly any problems.

Thankyou a lot for the help though.
Next Page (1)