AGS: Can I Make an RPG with AGS?

Started by TerranRich, Mon 03/05/2004 05:56:47

Previous topic - Next topic

Gord10

Quote from: Edwinxie on Sun 22/08/2004 06:57:07
Can't @score@ be your HP? Or would the game end after your HP is full?
It's already so. I had been using @SCORE@ for HP. But I don't know what to do with the mana and exp. I want them to type on the GUI, too.
Games are art!
My horror game, Self

Ashen

I think it's something like this (but with the right GlobalInts, and GUI / Label numbers, of course):

(in rep_ex)
string mana;
string exp;
StrFormat (mana, "%d", GetGlobalInt (2));
StrFormat (exp, "%d", GetGlobalInt (3));
SetLabelText (0, 1, mana);
SetLabelText (0, 2, exp);

And make two blank labels on the GUI.
I know what you're thinking ... Don't think that.

Edwin Xie

Quote from: CoolBlue-Gord10 on Sun 22/08/2004 17:22:46
Quote from: Edwinxie on Sun 22/08/2004 06:57:07
Can't @score@ be your HP? Or would the game end after your HP is full?
It's already so. I had been using @SCORE@ for HP. But I don't know what to do with the mana and exp. I want them to type on the GUI, too.

Maybe trying multiple score?
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

Gord10

Thank you, Ashen :) It runs. Edwinxie, how can I script the multiple scores?
Games are art!
My horror game, Self

Ishmael

For the future, a feature of AGS I found that could help people in coding battle system stuff is this littel bit:



You can include a couple of variables into global (and local) messages. You do this by inserting special tokens into the message. When the message is displayed in the game, the engine replaces the token with its value:

token   replaced by
@INx@  number of inventory item x that the player has
@GIx@  the current value of GlobalInt x (used with SetGlobalInt/GetGlobalInt)




Just a thought...
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.

BlackMan890

If you want to make an RPG without coding, i suggest using

rpgmaker 2000

or

rpgmaker 2003

NOTE, DONT and i mean DONT post for help in agsforum
Jonatan Nilsson
860 Iceland

Please go to www.simnet.is/elinnils52 and download my non ags/adventure game :)

PyroMonkey

This is the real cool thing about AGS, its so adaptable, you can even, with proper scripting knowledge, create an RPG with Crono Trigger-ish battles, where monsters walk around and stuff, or just about any type of battle system.
 

Moox

Im long into the process of making an rpg/mmorpg. Its not that hard to do, untill I try multiplayer. Just practice...

Edwin Xie

Quote from: CoolBlue-Gord10 on Mon 23/08/2004 00:16:17
Thank you, Ashen :) It runs. Edwinxie, how can I script the multiple scores?

How about doing a label that says Mana and exp and to change them use SetLabelText?
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

mousemat

can i make a score go up and then when you reach a certain number the fight ends?
because i wanted to make a boxing rpg!
Oh yer moon walkin'
www.freewebs.com/bkreview/

Ishmael

if (game.score) > ...and so on...
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

hi everyone

i have a problem i can make my character atack the oponent but how do you make the oponent atack the my character?
Oh yer moon walkin'
www.freewebs.com/bkreview/

Kinoko

What kind of battle system are you using? A little more3 detail needed before I can offer any help...

Gord10

I hope it works

PlaySound(1);
Display("You hit your enemy."); 
GiveScore(3);
if (game.score) >= 8 {
  NewRoom(2); //Defeated enemy
  }
if (game.score) < 8 {
   SetGlobalInt (2, GetGlobalInt(2)+2); //GlobalInt 2 is your health
   PlaySound(1);
   Display("Your enemy hit you");

And you should add this to the repeatedly_execute
if (GetGlobalInt(2) <=0) {   //Health is over
    NewRoom(30); //The game over screen
}
Games are art!
My horror game, Self

mousemat

#54
ok i will try out that script.Under what heading do i put the first script
kinoko  i am using ags of course
Oh yer moon walkin'
www.freewebs.com/bkreview/

Mr Jake

lmao
she means what type of battle system, turnbased, realtime etc.

mousemat

i would like to make an altime atck kind of one but it would be easier to do a turnbased one wouldnt it?
Oh yer moon walkin'
www.freewebs.com/bkreview/

Mr Jake

maybe, the main problem is that alot of people that seem to be trying to make a battle system haven't discovered 'SetLabelText' and how to use ints effectivly

Ishmael

For a realtime battlesystem:

All you need is a randomizer for the enemy attack, the scripts for the player attack (like, attack when space is pressed etc), and make sure the actions are not blocking...
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

how come there are no tutorials on making a basic rpg .
It would definitly come in handy.
Oh yer moon walkin'
www.freewebs.com/bkreview/

SMF spam blocked by CleanTalk