Posts: 56
Threads: 2
Joined: Aug 2011
@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>
Thanks given by:
Posts: 56
Threads: 2
Joined: Aug 2011
(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>
Thanks given by:
Posts: 1,018
Threads: 60
Joined: Mar 2008
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.
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ʟᴇᴇᴘ.
Posts: 56
Threads: 2
Joined: Aug 2011
01-02-2012, 08:42 PM
(This post was last modified: 01-02-2012, 08:57 PM by 支倉凍砂.)
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>
Thanks given by: