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 - Kinoko

#2081
Whoa, sorry sorry... my mistake. That code is actually in on_key_press... I don't know what I was thinking.

I've shuffled it all around now, and put the code necessary into repeatedly_execute, and InjureMe now works fine.

The problem now is just that the attacking part of the code won't work.
This is all in repeatedly_execute:

Code: ags

if (character[EGO].loop == 0) {
Ã,  egoslot = 202;
Ã,  }
else if (character[EGO].loop == 1) {
Ã,  Ã,  egoslot = 203;
Ã,  }
else if (character[EGO].loop == 2) {
Ã,  Ã,  egoslot = 204;
Ã,  }
else if (character[EGO].loop == 3) {
Ã,  Ã,  egoslot = 200;
Ã,  }

///////////////////////////////// MONSTERS ///////////////////////////////
moleret = spriteSpriteColDetect (EGO, CD_CHARACTER, egoslot, MOLERAT, CD_CHARACTER, 201);
moleret2 = spriteSpriteColDetect (EGO, CD_CHARACTER, 68, MOLERAT, CD_CHARACTER, 201);
//////////////////////////////////////////////////////////////////////////
Ã,  
if (character[EGO].room == 1) {
Ã,  if ((moleret == CD_COLLISION) && (character[EGO].view==19)) {
Ã,  Ã,  Ã, if ((Random(luck))<2) {
	Ã,  TypeLineKaya (510, 130, 50, 1, 12, 200, 0, -1); //miss
	}
	else {
	mondmg = ((str + wpnstr) + (RandomEx(((str/5)-str%5)*4,str)) - (RandomEx(((mondef/5)-mondef%5)*4,mondef)));
	if (mondmg<1) mondmg=1;
	molehp -= mondmg;
	DisplayDMG ();
	Display ("Molerat takes %d damage! Molerat's HP is %d", mondmg, molehp);
	}
Ã,  Ã,  Ã, }
Ã,  if ((moleret2 == CD_COLLISION) && (character[EGO].view!=19) && (GetGlobalInt(6)==0)) {
Ã,  Ã,  Ã, InjureMe();
Ã,  Ã,  Ã, }
}


It's now just the line if ((moleret == CD_COLLISION) && (character[EGO].view==19)) that doesn't appear to be working. The collision is fine because it works when I use (IsKeyPressed(88)) instead of the character[EGO].view line.  The necessary view is 20, so I have taken 1 off it.
#2082
It is funny, but not "ha-ha" funny.

It's kind of painfully funny. I actually saw that movie when it came out and thought that movie's couldn't get much lower. I don't think they have, really.
#2083
Sure will ^_^ though it won't be for a few months yet, you've got the job! How could I not take advantage of such a great Terranigma fan?

Ahh, cream-a-cat... I named my last cat Ark ^_^ I'd always tell him, "Ark is the noodle king!"
#2084
General Discussion / Re: Athens 2004
Mon 16/08/2004 15:29:25
Actually, I'd love for some program like A Current Affair to interview the Rugs-A-Million guy and basically play him some of his ads where he's said, "I'm am definitely, 100%, no bullshit, going out of sale and I need to sell all my rugs before I retire and head to France", and then show him his next ad and ask him to comment on it. Then just go through -all- the examples. Everyone complains and jokes about him but I'd love to see someone actually approach him about it, just to see what kind of response he gives.
#2085
General Discussion / Re: School-oh no!
Mon 16/08/2004 15:23:39
I think that's what Aussies think of Americans! ^_^ We have a reasonably big break over christmas... so, the end and beginning of the year. The holidays typically get bigger the older you get (primary school has average holidays, high school is a -tad- bigger, years 11 and 12 have a couple more weeks off and uni... you're practically ALWAYs on holiday XD If you're me, anyway).

Then, in typical school years, you have a two week break 3 times during the year... so, the four terms are split up. Now that I'm in uni, two week breaks seem so pizzley...
#2086
General Discussion / Re: School-oh no!
Mon 16/08/2004 14:55:22
I'm so confused. You guys go back to school in the middle of the year? In Australia, each school year starts at the beginning of the year and goes to the end (with holidays, of course). We start, on average, at age 6 in grade 1, to grade 7, and then high school starts at age 13 in grade 8, to grade 12.

In Australia, people who don't go through all 12 years of schooling typically become plumbers ^_-
#2087
General Discussion / Re: Athens 2004
Mon 16/08/2004 14:51:31
I've always hated Rove, ever since I came to QLD and learnt of his existance, and unfortunately I've been forced to watch a number of his shows this year because he's had some guests I just -had- to see (such as David Bowie, and of course the prick puts Bowie on at the very END of the show).

I agree totally about Andrew Denton. I don't think he's the king of comedy, and I used to hate him in his earlier days. He's become a much more watchable person lately, especially with Enough Rope. Of course, he's no Clive James but he does do a great job of making an entertaining show on a similar level.

The paralympics is great because often, the athletes have to try even harder. I get a bit sick of watching sports where the athletes don't really seem to push themselves. I think the Aussies are gonna do pretty well out of this Olympics, and we -definitely- have a good medal:population ratio ^_^ I don't watch the Olympics for Australia though (though I do like winning, just to get our medal count up and/or beat the USA), I just like seeing cool sports I never otherwise get to see. I LOVE gymnastics, and things like table tennis are great. The Australia table tennis player I saw was fantastic, but HILARIOUS. He did this weird knee jerk every time he served. Ahh, it's moments of ridicule like that that really entertain me.

I must admit, I was glued to the tv today watching us kick ass in the shooting. Can't wait to see some more syncronised diving, and that craaAAaaaAAaazy syncronised swimming.
#2088
Hmm, I thought you could just tack things on the end. In that case, I'm not sure where to put it exactly. I mean, almost everything I've added to the global script has gone outside of the pre-existing functions and they all work fine. I've been trying to avoid putting too many thing in repeatedly_execute in case it slows the game down.
#2089
Erm, it's not in a function. It's just at the end of the global script.
#2090
General Discussion / Re: Athens 2004
Mon 16/08/2004 06:05:20
I think the Panel's great, but it's never going to be what the Late show once was because it's on a commercial channel. I nearly killed someone last week when the guest was Nikki Webster. I just wanted them all to turn to the tv and apologise at some point... but you have to accept that they have to tone themselves down for sensitive channel 10. They're probably a bit older and wiser nowadays too (such a pity) and of course, the biggest problem is that Tony and Mick are only there as rare guests and not regulars.

It's just like when Micallef moved from the ABC to... whatever channel that was. He was still funny but he lost a lot of his ... er... spirit, because he would've been on stricter rules. The tragedy there is that because he had to tone down, the show didn't take off. When will people learn not to leave the ABC? -_-
#2091
Oooooh, I love swing music! I can't say I'm an overall jazz fan because modern jazz tends to urk me (at least what's referred to as jazz), but if I could recommend two people you need to listen to above anyone, it's...

Duke Ellington and Benny Goodman. If Benny Goodman were alive today, I'd be his wife, or failing that, his mistress. I'd be in there -somewhere-, anyway. Make sure you get a cd of his with Opus one and two on it.
#2092
No, that's just at the end of my global script.
#2093
General Discussion / Re: wipe them tears, babe
Sun 15/08/2004 15:05:57
I don't know who you are at all, but whatever...

WELCOME BACK, MAN! I never knew that tears could stain... ;_;
#2094
General Discussion / Re: Athens 2004
Sun 15/08/2004 15:02:21
Sure, the winter Olympics probably are on the whole, much more entertaining. I always imagined they got a lot of publicity in Europe and whatnot, where you guys actually have snow. In the "big", non-European western countries (predominantly America, I guess), it's perfectly understandable that the summer Olympics be considered the big one.

Firstly, this is what the original Olympics were based on. Athletics like running, jumping, and slaying each other. The summer Olympics is based around (summer) athletics, given that these days there are heaps of team sports and ... such.

Secondly, the summer Olympics has the kind of sports most people in the types of coutries like Australia and the USA actually participate in or actively watch themselves in normal day-to-day life. Most people in schools here regularly do running, high jump, soccer, we have swimming carnivals... I can tell you that I never, ever did ski jumping in schools.

I agree though, I'm nuts about the Winter Olympics, but a lot of that is probably because it's so 'foreign' to me. Snow? What's that? The Summer Olympics will always be the "main" Olympics though. I wish it had California Games events though... footbag! Rollerskating! FRISBEE!

Quote from: Doctor R.L. Peniscisor on Sat 14/08/2004 16:25:26
The most interesting thing about the olympics is 'The Dream- in athens'. Most of you probably dont know what it is.

Which is a good thing, trust me. It's a completely spastic show hosted by two people that everyone wants to be seen to like, and think are hilarious when they aren't funny at all.  I get so sick of hearing people say things like, "Ooh, gotta get home for The Dream!". It's become something people have heard is funny, and are told is funny, and to be cool and having something to talk about at the water cooler the next day, think they have to watch it. Bloody Roy and HG. Humbug! Give me Micallef or the Panel (or just the Late Show!) any day. Actual humour. Typical Roy and HG humour is stating something sarcastically ... and everyone laughs. "Oh look, he's making that face. I guess this is where we laugh".

Sorry but... boy, I hate that freaking show. It's just so annoying because it's become popular in Australia like this and now people are starting to think it's an Olympic tradition or something.
#2095
Hmm, I hate having problems like this where I just can't see what's wrong logically.

Here's basically all of the scripting involved.

Code: ags

int moleret = spriteSpriteColDetect (EGO, CD_CHARACTER, egoslot, MOLERAT, CD_CHARACTER, 201);
///////////////////////////////
if ((moleret == CD_COLLISION) && (character[EGO].view==19) && (GetGlobalInt(6)==0)) {
  if ((Random(luck))<2) {
	  TypeLineKaya (510, 130, 50, 1, 12, 200, 0, -1); //miss
	}
	else {
	mondmg = ((str + wpnstr) + (RandomEx(((str/5)-str%5)*4,str)) - (RandomEx(((mondef/5)-mondef%5)*4,mondef)));
	if (mondmg<1) mondmg=1;
	kayahp -= mondmg;
	DisplayDMG ();
	Display ("Molerat takes %d damage! Molerat's HP is %d", mondmg, kayahp);
	}
  }

else if ((moleret == CD_COLLISION) && (character[EGO].view!=19) && (GetGlobalInt(6)==0)) {
  InjureMe();
  }


Basically, this is defining a collision between the two characters (which works fine). If that collision happens and the character is in the "attacking" view, run the script regarding damage to the Molerat. If it's any other view, run InjureMe...

Code: ags

function InjureMe() {
  if (GetGlobalInt(6)==0) {
	  SetGlobalInt (6, 1);
	  SetCharacterView (EGO, 22);
	  //displaydmg
	  AnimateCharacterEx (EGO, character[EGO].loop, 0, 0, 0, 1);
	  SetCharacterView (EGO, 19);
	  SetTimer(2, 80);
	  }
  }



Then in repeatedly_execute:

Code: ags

if ((IsTimerExpired(2)==1) && (GetGlobalInt(6)>0))  {
	    SetGlobalInt (6, 0);
	    //Wait(1);
	    }


I don't know... when I look at it, I can't see what's wrong. The only thing that strikes me is that it -seems- like something isn't being updated until my character has moved. Though, that doesn't seem to make sense because I can move my character after it's been injured, and then stop it, and it still won't run InjureMe again when the collision occurs once more. The character has to be moving at the time of the collision for it to run the code again.
#2096
Hehehe, I just laughed my way through this whole thread. God, it's a kind of painful recognisation.

As far as I know, absolutely everyone gets these, some more than others. I go through periods where I get them frequently, but thankfully right now isn't one of those times. I've had them, as has been said, mostly while lying in bed when I go to stretch (which you always WANT to do in bed). I've now learn NEVER to stretch my legs in bed, or any lying position - ever. I just don't do it because of the absolutely crippling =fear= of experiencing a leg cramp. "Leg cramp" is what I call them. "Charlie horse" is, from what I can gather, an American term.

I'm not sure if I agree with that lying down method because I know that when I've had them, my first reaction is to LAUNCH up into a sitting position and grab my leg. I don't think I could possibly stay lying down, the pain is too horrendous.

My recommendation would be to exercise well and drink plenty, obviously. If they DO happen (and they will), try to get your leg off the bed and just gently massage it.
My number one tip is to keep your feet WARM. I used to get these a lot when I slept with bare feet, and as soon as I started sleeping with wooly socks on, (or warm pants) they stopped.

These have mostly happened to me in bed when stretching. I've also woken up with one in the middle of the night a few times (which is the most god-awful way to ever be woken up) which leaves you stunned and shocked and unable to get back to sleep. Sometimes it's happened to me when I've been sitting on the couch in a sort of "sitting on my feet" position with bare feet. Again, warm socks will cure this wonderfully.

I just can't emphasise warm socks enough.

My parents once informed me these can be caused by a sodium deficiency... anyone else heard of this?
#2097
General Discussion / Re: Athens 2004
Sat 14/08/2004 07:15:27
Normally, I'm not one to say this sort of thing but...


I thought this was the greatest Olympic Opening Ceremony - ever. (That I've seen in my lifetime) Ever.

I can't just say that "blah was okay" because I thought it was amazing. I was just hoping beyond all hope it wasn't as wanky and long winded as the Sydney one, and thankfully it wasn't. Everything was tasteful, and classy, and the parade of ages thing was just SO COOL >_< Beat the crap out of our flying fish.

I too saw the replay, I just fell asleep before the live ceremony early this morning.
#2098
moleret/CD_COLLISION are due to the Character Collision plugin I'm using.

I'll recheck everything tomorrow when I'm not falling asleep. Thanks for your help so far, anyway.
#2099
I did indeed have the SetGlobalInt line there, I should've mentioned it. I'll modify my original post.

I followed your suggestion with the rest anyway, but it made no difference. I'm not sure but I don't think the "(GetGlobalInt(6)>0) " line is necessary. As I understand it, IsTimerExpired only returns 1 once so the way it's setup to run directly after the function has executed, it shouldn't be a problem. I think, anyway.
#2100
A couple of questions actually.

Firstly, using (character[EGO].view==20) doesn't appear to work in a statement like this:

Code: ags

if ((moleret == CD_COLLISION) && (character[EGO].view==20) && (GetGlobalInt(6)==0)) {

blah blah blah...
}


I'm not sure why or what I can do instead.

Secondly, I have a collision detection set up to, once detected (and if GlobalInt 6 == 0), run a function which like this:

Code: ags

function InjureMe() {
Ã,  if (GetGlobalInt(6)==0) {
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã, SetGlobalInt(6, 1);
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã, ...blah blah...

	Ã,  SetTimer(2, 80);
	Ã,  }
Ã,  }


...and in the repeatedly_execute section:

Code: ags

if (IsTimerExpired(2)==1) {
	Ã,  Ã,  SetGlobalInt (6, 0);
	Ã,  Ã,  Wait(1);
	Ã,  Ã,  }


I have it set up this way so that, if the character's collide and if the player isn't currently "being injured", he will get injured, and for 2 seconds afterwards, will be "invinsible" and unable to get harmed again. I have to use a Timer function instead of Wait so it isn't blocking.

The problem is that after being injured once, if the character just stands still, the interaction won't happen again at all. I have to have the character moving (or something updating the script) for it to allow him to get injured again. That's why I put the Wait(1); in, but it doesn't seem to do anything.

I'm pretty stumped on this... can anyone help?
SMF spam blocked by CleanTalk