Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Novur

Members
  • Posts

    44
  • Joined

  • Last visited

    Never

Novur's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. So what you're trying to do is increase the amount of tiles in the same amount of space? All that will do is mess up your game. If you want more tiles in the same amount of space, just make the tiles 16x16 instead of 32x32 by changing PIC_X and PIC_Y. All you're trying to do is make more room where room isn't available. The picScreen auto-stretches the amount of tiles to fit inside the screen, making everything on your game appear twice as small.
  2. Oh, sorry Robin. I thought the code you posted was just quoting what I said. My mistake. I'll post that up there.
  3. You mean like if I set the complicated calculation to a variable then check if the variable > 24, etc?
  4. I'll comment it out in my original post. Make it a little more user friendly. When I code, I keep everything clumped together for some reason.
  5. I added my own feature to the code. In **Public Sub BltPlayerHP** find ``` ' Draw the HP bar Call DDS_BackBuffer.SetFillColor(RGB(0, 255, 0)) Call DDS_BackBuffer.DrawBox(ConvertMapX(X), ConvertMapY(Y), ConvertMapX(X + Int(((GetPlayerVital(Index, Vitals.HP) / 32) / (GetPlayerMaxVital(Index, Vitals.HP) / 32)) * 32)), ConvertMapY(Y + 4)) ``` Replace it with: ``` Dim HPPercent As Integer HPPercent = Int(((GetPlayerVital(Index, Vitals.HP) / 32) / (GetPlayerMaxVital(Index, Vitals.HP) / 32)) * 32) 'Checks to see if the amount of hp you have is greater than (>) 75%. (0.75 * 32) = 24\. 32 is the width of the hp bar. If HPPercent > 24 Then Call DDS_BackBuffer.SetFillColor(RGB(0, 255, 0)) 'Changes the HP bar's color to GREEN. 0 Red, 255 Green, 0 Blue. 'Check if the HP you have is greater than 50%, but if it's greater than 75% too, it will go to green in the code above. '0.50 * 32 = 16\. 0.50 represents the % we want, 50% and 32 represents the width of the hp bar. ElseIf HPPercent > 16 Then Call DDS_BackBuffer.SetFillColor(QBColor(Yellow)) 'Changes the HP Bar's color to YELLOW. QBColor(Yellow) returns yellow. 'Check if the HP you have is less than 50%. 'Anything less than 50% (16 pixels) is red. ElseIf HPPercent < 16 Then Call DDS_BackBuffer.SetFillColor(RGB(255, 0, 0)) ' Changes the HP bar's color to RED. RGB value of 255 red, 0 green, 0 blue. End If 'This just draws the filling of the HP bar. Call DDS_BackBuffer.DrawBox(ConvertMapX(X), ConvertMapY(Y), ConvertMapX(X + Int(((GetPlayerVital(Index, Vitals.HP) / 32) / (GetPlayerMaxVital(Index, Vitals.HP) / 32)) * 32)), ConvertMapY(Y + 4)) ``` What this does, is makes the color of the hp bar dynamic with the % of hp you have left. If you have 75% Hp or more, it will be green. If you have 50%-74.99% your bar will be yellow and if you have less than 50% your bar will be red. Screenshots: >75% HP(Green): ![](http://www.freemmorpgmaker.com/files/imagehost/pics/baa2ae56cf9357624803652a44463739.png) >50% HP
  6. What about if a player could open their own shop in a map with a special type such as Market or Marketplace etc?
  7. Well, to get the screen's resolution you would have first get the resolution. ``` Dim ScreenWidth as String Dim ScreenHeight as String ScreenWidth = (Screen.Width / Screen.TwipsPerPixelX) ScreenHeight = (Screen.Height / Screen.TwipsPerPixelY) ```We set to variables, ScreenWidth and ScreenHeight. We set them to your Screen's Width, and your screen height. Though, this will return some ridiculously high number that is not right. Therefor, we have to divide it by the TwipsPerPixel X/Y it makes. Then: ``` Call DD.SetDisplayMode(ScreenWidth, ScreenHeight, 32, 0, DDSDM_DEFAULT) ```
  8. @Robin: > @tommy87: > > > O_O whoa.. a flexible way to change\edit size of every map would be great. To be honest I dunno if that's possible, but it just a personal opinion. Maybe somebody could help you better than me, of course.. > > There is a flexible way. Origins handles it all automatically. > > Simply change the size of the picScreen, then change MAX_MAPX and MAX_MAPY both server side and client side to the amount of tiles which fits into the picScreen. > > Origins will handle it all automatically. Keep in mind if you have tiny maps and you make the minimum size bigger then it'll probably bugger itself. In that case, just delete the maps and re-create them. Ah, thanks Robin. :) @SilentStalkerChris16: > @tommy87: > > > O_O whoa.. a flexible way to change\edit size of every map would be great. To be honest I dunno if that's possible, but it just a personal opinion. Maybe somebody could help you better than me, of course.. > > Damian did it for Eclipse stable. Yes, I know how to do it for E.S, but I'm not using E.S anymore.
  9. I've started using Eclipse Origins because I find it better for my Pokemon game. In Pokemon, maps consist of various sizes and I need to be able to change the individual size of each map. But, I've run into a few problems. I cannot change the size of picScreen and the gameplay without stretching out the map. How can I change the size of picScreen without stretching the map and messing up everything. I need to do this to put in my custom GUI and picScreen is way too small for my GUI, plus I'd like it bigger anyways. Any ideas?
  10. @Ddunit: > Are those lego skins? o_o Excuse me idiocy, but what is a lego skin?
  11. Novur

    Chat Color help?

    @мсичġġєт: > I think it's colours.txt in GUI or GFX or something. It's there somewhere. Nope :( @Robin: > Having names different colours is in Origins. Rip it from that. Ah, okay. Time to get Origins and find where that is at.
  12. Title is "GAME(192.168.1.73:4000) - Eclipse Server Stable" Under the IPConfig, IP is 192.168.1.73 and Port is 4000\. What I'm going to try doing is uninstalling hamachi
  13. Yup, 1 of each. Also, does it have something to do with LogMeIn Hamachi? Right after I turned it on it started.
  14. Now my client sits there saying "Checking" forever for server status and never connects. o_o Eclipse hates me T_T; :sad:
  15. That got rid of the errors, but now scripts aren't even running. Scripts: ON, but when I right click, no info pops up or attack the quest npc, the quest window doesn't pop up, or anything script related.
×
×
  • Create New...