Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Alynn

#221
yes I think I asked the "Who the hell really knows the answers to these questions" portion of the quiz :P
#222
It would help to know how you would like them sorted...

However something you may try is an array of the team names, you can start sorting by going through the array and checking whatever it is you want them to sort by.

I could see a struct being used such as

struct Team{
  String TeamName;
  int Wins;
  int Losses;
};

Then you could script to sort by wins losses, or by team name (note this will take some scripting to accomplish);

But yes, exactly how would you want them sorted.
#223
There are only certain filetypes that you can use. In paint save it as a .png file, which AGS can use. GIF's can be used as well.

And please, read the manual, and check out the tutorial.
#224
General Discussion / Re: php/js/shtml help
Sat 05/08/2006 19:35:50
I found what it was.

It seems that all my shtml pages had the HTML transitional doctype, wordpress and my forums used XHTML doctype... I changed the document types and now both display correctly... Now I just have to edit the forums a bit since they are now displayed slightly different... and fiddle some with wordpress :)

Anyway thanks for those that helped
#225
You could do this a few ways...

One create a bool for each item
bool ItemOneLookedAt = false;
bool ItemTwoLookedAt = false;

and so on... once each item is looked at change the variable to true, and for the interaction check if it's true, and if it is, then allow it to be picked up.

The other way is to create a custom property for each item that bascially does the same exact thing. Fairly similar to what Ali said execpt it would be

if (PrawnLookedAt) {
cEgo.Say("MMM Prawns");
cEgo.AddInventory(iPrawn);
}
else Say("Maybe I should look at them first.");

Hope it helped
#226
General Discussion / php/js/shtml help
Sat 05/08/2006 09:13:24
Ok well I have a js based menu that works fine in all my shtml pages:example

However when putting the header on my wordpress and my forums the js formatting is completely hosed: forums and wordpress.

To me it seems that the css for the forums and wordpress are overriding the js settings, however that doesn't happen with my shtml file.

All of the files use includes either server side includes for my shtml, or php includes for the forums and wordpress...

I'm basically a php n00b... I've never really used it, but I can understand it enough to make small edits. CSS I know fairly well. But this issue I can't seem to figure out how to fix...

So can anyone out there with some experience give me an idea of how to fix it so that my menu formatting isn't destroyed by my wordpress and forums?

Thanks.
#227
or for some reason she has a static IP setup on hers while yours is DHCP, most home based routers have DHCP enabled so each computer will pull the correct IP addy, in which case just make sure both are set to get an IP address automatically.
#228
no.
#229
Out of curiosity, did you adjust this to account for the 50 samegame limit of 2.72?
#230
Ditto on the FontCount... Would make me able to put error checking in my module so that the user can't assign a non existant font
#231
Ok I'm going to try to be as nice about this as I can...

All you have is an idea, ideas are nice and all, but they honestly don't mean anything... what you are asking for is someone to make your game for you, but not just someone, a whole group of someones...

As a matter of fact right now I can do the scripting, graphics and everything else, and just take your idea, and frankly there is nothing you can do about it. You can scream and whine all you want that "It was my idea" and all people will say is "Why didn't you do something with it"

Now I'm sorry, maybe I'm too harsh, but this kind of stuff irks me... if you want to learn scripting, break open the manual and learn... if you want to draw... try to draw... ask for advice to improve...

bottom line

AT LEAST FRICKIN TRY...
#232
yes it is quite possible that you need the crypto key for the wireless lan to use it. If I go and search for networks I find 6 in this particular area where I live, 5 are secure and 1 is not... one of the 5 secure is mine... so then I have to put in the crypto number to have access to my router...

You probably should find that out.
#233
No compile with 2.72 SSH GetGameParameter no longer exists

Game.SpriteHeight
Game.SpriteWidth

So on and so forth :)
#234
Bah, if I use that module that means there are 3 modules of yours I'm using (2 of my own, although one is a util module) and one of supsuper...

Odd though, my first few searches never came up with the thread... then again I didn't put module in it...

Anyway I'll check it out tonight and see how it does.
#235
I'm at work, so I can't actually test anything on AGS however I have been thinking of psudocode to use to do what I want... so I'll explain.

My character carries his inventory in his body, what I would like is when inventory is chosen, either A, the camera zooms to the characters body where the INV gui will then appear (and when inv window is closed the camera zooms back to normal position). or the alternate. The character zooms to the camera getting larger and larger until he takes up the whole screen and then the gui appears.

So in other words, this is a global type zoom, usable pretty much anywere that the player can open up the characters inventory.

I have two threads of thought on this... one is to use rawdraw to zoom, as suggested on other parts of the forums, however, since there will be some manipulation in trying to move the screenshot to move the character to the center of the screen as it zooms in, it may be more difficult than needed just for a single sprite... Second issue, my character sprites are Anti Aliased... so it would generally look nasty because if I remember right rawdraw isn't antialiased.

Second thought is to have the character sprite on the gui itself, and move and resize the gui to get the same sort of effect... the issues with this approach is having 2 instances of the character on screen at once and the number of background sprites for the gui I would need to make it work nicely.

So anyway... What I have so far is (psudo code)

function ShowInv(){
//center of the screen
int centX = ViewportX +160;
int centY = ViewportY +120;
//pixel change between player and center
int deltaX = player.X - centX;
int deltaY = player.Y - centY;

Get character loop frame 0 //for sprite to manipulate

while loop // most likely to loop until final size is reached, say width of screen
increase size by X%
int spriteCentX = centX  -  get width of rawdrawn sprite /2
int spriteCentY = centY - get height of rawdran sprite/2
move toward spriteCent by 1 pixel //both x and y coords
RawDraw it
end loop
gInvGUI.Visible = true;

And basically do the opposite to close the gui up... making the gui is basically the same, except it's easier to center the thing, and every resize of the gui assigns a new background sprite to the gui.

As an idea would this work, or in your experience is something like this more difficult to code than it is worth? Have you done something like this before that has worked?

I'd like to have an idea before I get home today and start messing with it. I don't need you to code it for me, I just wonder if I'm even thinking correctly on how to even attempt this.

Thanks.
#236
Well the reason I was asking is I have 9 different cursor modes of which 6 would have to be on the GUI. It's ok though If I feel like making my own I will, but if not I'll just stick with the verb bar at the bottom.

Thanks
#237
I had somewhat the same error... I believe it came from me calling the GUI like

gSaveGui.Visible = true;

When I changed that to SaveList.Show() it worked correctly...

I also double clicked each button to make sure the script was there... that fixed any sort of problems...

so try both of those and see if it fixes it for you.
#238
Well if you have an old AGS then you don't need the music folder... thats one...

Secondly, the music1.* should be in the game folder.

Third unless it's an MP3 or OGG it doesn't go in a .VOX file if it's a wav or a midi it gets compiled into the executable.

So in the room editor, you have the Play Music on Room Load checked and the number 1 in the text box behind it correct?

Forth, you can't play VOX files...

Fifth, is the vox file in with the executable (in your compiled folder)
#239
Would / (or is it \ my brain is foggy) % do what you want? I know it works for quotation marks
#240
Yeah well, there has been quite a bit of discussion on religious topics... but this article caught my eye...

http://msnbc.msn.com/id/14083809/site/newsweek/

should spark some MORE conversation :)
SMF spam blocked by CleanTalk