It cant attack me o.0

Started by mousemat, Wed 03/11/2004 13:40:05

Previous topic - Next topic

mousemat

Hi....I am making an RPG and its not going well.
I can attack the oponent but the opponent can't attack me!!
Do you have to make another score Gui if yes ..how, If not then how do you make it so it canh attack you?

Thanks for any help,
Mousemat
Oh yer moon walkin'
www.freewebs.com/bkreview/

Ishmael

Um... what you actualy have done so far? What have you scripted for the player attacking, and what for the opponent attacking back?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Hellomoto

Depending on what you are creating, this could take a lot of AI, especially if you want the computer to have a fighting chance.

You would have to be more detailed in your description of what you are doing.

mousemat

Ok its going to be like a pokemon kinda battle..hope that explains it..i am trying also to find a way of making somthing like this with little scripting..and its working apart from the opponent attacking :-\
Also i would like to know if it is possibly to have a counting down timer clock thing for my sunrider game?
Oh yer moon walkin'
www.freewebs.com/bkreview/

BorisZ

Create attacking animation, set random variable and if that random variable is set to number you want, decrease your hit points.

mousemat

Then i need 2 guis swith @score@ on ... how do you do that so they both don't show the same no. of hits?
Oh yer moon walkin'
www.freewebs.com/bkreview/

Ashen

what does the score have to do with it? And why would you need 2 GUIs?
Would one be the character HP, and the other the enemy?
If so, try using a GlobalInt to store one of the HP values, and use @GIx@ (where x is the number of the GlobalInt) instead of @score@ on one GUI.

And about the countdown timer, checkout strazer's second bit of code in THIS THREAD.
I know what you're thinking ... Don't think that.

Ishmael

I think the @GIx@ tag don't work on GUI labels, only on displayed messages... or atleast used to in an older version...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

mousemat

#8
????????????also i would like to know how to make some thing like a clock that counts down .... If that is possible :-\
Oh yer moon walkin'
www.freewebs.com/bkreview/

Ashen

#9
Oh bum, Ishmael's right. You'd have to use:
Code: ags

// in 'Repeatedly Execute'
Ã,  string hp;
Ã,  StrFormat (hp, "%d", GetGlobalInt (1));
Ã,  SetLabelText (0, 1, hp); // or whatever GUI/Object you're using


Which means it's probably as easy to create a custom int.

Was the countdown link in my last post no use, then?
I know what you're thinking ... Don't think that.

mousemat

#10
Sorry didn't notice your last post..just gonna check it out now ;)

Oooh i will try that after school thanks ;D

and i will try out that hp thing!! ;)
Oh yer moon walkin'
www.freewebs.com/bkreview/

poc301

I haven't used the repeatedly execute yet, but doesn't that stop all other processes until it finishes?

Mousmat ofline

er Countdown dosent do anything....what else do i have to program to get it working? :-\

Ashen

What have you got so far? How is it not working - not counting down, starting from wrong time, not displaying, generating an error, just not doing anything?
I know what you're thinking ... Don't think that.

mousemat

It is not counting down. it just comes up with:
00
00
Oh yer moon walkin'
www.freewebs.com/bkreview/

Ashen

Will the game still time out when you want it to (i.e it's just the display that's not working), or is the clock not working at all?

Either way, can you post your repeatedly_execute code.
I know what you're thinking ... Don't think that.

mousemat

Why is it that every time i edit the script there is always an undifined token :P
Oh yer moon walkin'
www.freewebs.com/bkreview/

Gilbert

Probably you had mispelt a function/variable name, or forgotten to define a variable.
Can you post your script here for us to check?

SMF spam blocked by CleanTalk