Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hex for Project/Beginner
#11
@Blue Phoenix, MH-Razen, Lord Silva:
Thanks for clearing that out.

@xmfcx
Okay, but if I can only have MP or the other, I am going with the MP.

Is it possible to add a SP gauge that everyone has then?
<div style="float:left;"><img src="http://i1248.photobucket.com/albums/hh495/sikigami/avamaou.png"> </div><div style="margin: 50px auto auto 15%;">凍て付く夜明けを 乾いた真昼の 震える闇夜の 果てを見に行こう</div>
Reply
Thanks given by:
#12
Here is your stamina bar.
(without hex:P)

www.lf-empire.de/forum/showthread.php?tid=4448&highlight=stamina

by Snomin
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by: 支倉凍砂
#13
is there anything to edit lf2
i use reshack but no use it doesnt open the lf2 after
why does that happen?:)

Reply
Thanks given by:
#14
(12-31-2011, 12:42 PM)xmfcx Wrote:  Here is your stamina bar.
(without hex:P)

www.lf-empire.de/forum/showthread.php?tid=4448&highlight=stamina

by Snomin

Difference is that bar is located under the character, and not in the "status bar". : p
Though, I might try to use that if deemed necessary.
<div style="float:left;"><img src="http://i1248.photobucket.com/albums/hh495/sikigami/avamaou.png"> </div><div style="margin: 50px auto auto 15%;">凍て付く夜明けを 乾いた真昼の 震える闇夜の 果てを見に行こう</div>
Reply
Thanks given by:
#15
Making a stamina bar shouldn't be too difficult. You need to allocate memory for it. Lets say stamina goes up to 500, so we can store that in 2 bytes, you will need to allocate 400(since there are 400 possible objects in lf2) * 2 (since stamina will take 2 bytes).

Then just access it by doing something like:

add word ptr ds:[memAlloc + player_id * 2], 1

Or something.

Then search for my winamp controller. It includes a method to get the DC from the direct draw interface in lf2, this will allow you to "draw" on the lf2 screen. You can use that to draw rectangles and stuff (a.k.a the stamina bar).

Then just use some basic math to figure out how big the rectangle should be, and you are done.
[Image: doty7Xn.gif]

10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.


Reply
Thanks given by: mfc , 支倉凍砂
#16
Can you make it work like the mp-tag then? So that some attacks have like

<frame> X stamina_attack
pic: ? [...] sp: 200

?


Also, as Julian and Firzen's IDs have enhanced MP regeneration, I guess it would be possible to have the SP regeneration also vary whith each character?
<div style="float:left;"><img src="http://i1248.photobucket.com/albums/hh495/sikigami/avamaou.png"> </div><div style="margin: 50px auto auto 15%;">凍て付く夜明けを 乾いた真昼の 震える闇夜の 果てを見に行こう</div>
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)