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

Topics - Akumayo

#81
I have three functions currently, they are enemy_attack(); enemy_bite(); and enemy_constrict();

In my global scipt I have the following:

function enemy_attack() {
  if (GetGlobalInt(106)==1) {
    //You are fighting a sneak
    SetObjectGraphic(1, 0);
    if (GetGlobalInt(108)==1) {
    SetGlobalInt(70, 5);
    SetGlobalInt(71, 0);
    SetGlobalInt(72, 0);
    SetGlobalInt(73, 0);
    SetGlobalInt(74, 1);
    SetGlobalInt(75, 1);
    SetGlobalInt(76, 1);
    SetGlobalInt(108, 0);
  }
    SetGlobalInt(107, Random(1));
    if (GetGlobalInt(107)==0) {
      //Sneak will use bite
      enemy_bite();
      GUIOn(BATTLE);
    }
    if (GetGlobalInt(107)==1) {
      //Sneak will use constrict
      enemy_constrict();
      GUIOn(BATTLE);
    }
}

function enemy_bite() {
  SetObjectGraphic(2, 0);
  SetGlobalInt(105, (GetGlobalInt(1))-(GetGlobalInt(76)+1));
  SetGlobalInt(1, (GetGlobalInt(1))-(GetGlobalInt(76)+1));
  DisplayMessage(546);
  SetObjectGraphic(2, 0);
}

function enemy_constrict() {
  SetObjectGraphic(2, 0);
  SetGlobalInt(105, (GetGlobalInt(1))-(GetGlobalInt(76)+2));
  SetGlobalInt(1, (GetGlobalInt(1))-(GetGlobalInt(76)+2));
  DisplayMessage(546);
  SetObjectGraphic(2, 0);
}



And in my GUI script I call the enemy attack(); like so

enemy_attack();

I have already imported all the functions in the script header, but I get this message when trying to save the game:

function enemy_bite() {
  SetObjectGraphic(2, 0);
  SetGlobalInt(105, (GetGlobalInt(1))-(GetGlobalInt(76)+1));
  SetGlobalInt(1, (GetGlobalInt(1))-(GetGlobalInt(76)+1));
  DisplayMessage(546);
  SetObjectGraphic(2, 0);
}

Error (line 30): already referenced name as import; you must define it before using it



How do I fix this?
#82
I feel silly posting this, but for the life of me I can't figure it out.

I need to know how to replace %s with the buffer: name.Ã,  Here's the script:

DisplaySpeech(DAD, "Hiya %s!", name);

It calls "name" an undefined symbol.Ã, 
I've already defined "name" using an Input Box though, here's that script:

string name;
InputBox("Your name?", name);

The thing is, when DAD talks, he says "Hiya !"
It seems like it ignores my %s

What do I need to do?
#83
     Over the course of the school year my need for AGS was lessened by one thing, a TI-83 Calculator.  I took the time to learn the programming language used to make programs that can do the pythagorean therym, find missing angles, etc.  And I turned my calculator into a text based game centre.  I have both a basic RPG and a casino with roulette, card draw, dice, slot machines, and a "luck wheel".  About now you are asking my point, right?

     The TI allows a script function called a "Label"  It is more like a sub-script.  You type in "Goto A" and it searches your script for a line with "Lbl A"  On it.  It starts running script from the "Lbl A" line.  You can type a command, "Return" anytime after "Lbl A" and the script runner jumps to the line directly under "Goto A"

     My Point?  This allows for an all out game.  Particularly, it allows for RPG's.  Using the Labels (sub-scripts) you can quickly loop scripts for attacking, checking for HP below 0, and rewarding the player for a win.  My point is this, does AGS have any sort of sub-script system like this?  If so, I need to know how to access said system.

     All comments are appreciated.
#84
Critics' Lounge / Ancient Temple Background
Sat 21/05/2005 23:56:38
Drew this a while back, and I'm still not satisfied.Ã,  There's just something missing from this temple.Ã,  It's supposed to be a temple made of adobe and gold, but it just doesn't look right.



#85
General Discussion / System of a Down
Mon 09/05/2005 01:25:58
Alright, I love System of a Down and I LIVE off their works.  They recently reevamped their site systemofadown.com and will release their new album on May 17th.  I know that nobody really cares but me, but I would like you to browse around the site and still be able to tell me that your not the least bit interested.  (Really creepy and hypnotizing graphics)  System of a Down is a very unique band that targets politics, psychology, and death.  They are classified as Hard Rock, but they are really a style all their own.  You can listen to their new sond B.Y.O.B. (Bring your own Bombs) on the site for free!  They are awsome!!!

Screw George Bush !!!
#86
     I found an online game (Sveers at Miniclip.com) that has Microsoft Sam (the text-to-speech program on Windows) talking to you and telling you your score, name, etc.  If anyone has found a way to do so in an AGS game, I would like to know. 

It would be cool I think if you could make a function with this Microsoft Sam thing, like MSamSay("This is Microsoft Sam.");

Anyway, any ideas, or has this been done?
#87
     Okay, I need a game where the main character (MAIN) has a gun he carries around.  When the "F" key is pressed, I want him to fire it.  The problem is getting the bullet from point A to B.  What I want if for when the F key is pressed, an animation is run showing the character pointing the gun right, then a bullet shooting from it and traveling right across the screen, always at the same Y position.  I thought I could do this by altering the bullet character's (BULLET) "x" position by +1 then wait(1) in repeatedly execute, so that the bullet would travel right across the screen at a decent speed.  The main problem is that I cannot figure out how to get the bullet right on the main character's sprite and beside his gun to make the bullet appear to come out of the gun.  I cannot get the bullet to the character's gun's position.  Any suggestions or a different way to do this???
#88
Sorry for booting this up to the front, and sorry to all those who put monsters into it, but Batling: Rise to Power is being canceled.  I cant do it anymore.  Too many bugs, so much dialogue, I can't handle it!!!  If anyone wants the sourcecode so they can adopt it or whatever, e-mail me at akumayo@hotmail.com and we'll work something out.

Special thanks for trying Ozwalled, sorry.
#89
honestly, how long is a N00b considered to be a new-bie before they become "normal" ???
#90
Okay, I need C&C on this monster thing.Ã,  I uploaded it so that you can see the steps I took to draw it.Ã,  I think it looks unfinished, or overdone or something.Ã,  Tell me where I went wrong or C&C please!

#91
General Discussion / Try and Decode this!!!
Fri 30/07/2004 00:14:13
Okay, fellow ags'ers, I have a challenge for you.  See if you can decode this message:

15/75/20/25/20-92/60/72/16/

Here are your hints:

a - signals the end of one word and the beginning of another
a / signals the end of one number
each number will be a letter if decoded
three variables are needed, a and b and c
variable a=the number you are decoding
variable b=how many numbers (not digits) are in the word you are decoding
variable c=the letter's value A=1, Z=26, get it?
To solve:
a/b=c
c=the letters value, so 1=A, 26=Z, get it?

So, who can solve it first??
#92
In my game, I need a character's life displayed on a GUI, in the GUI's label, I have written Life= @GI7@ / @GI8@ 

Unfortunately, during the game, the GUI reads, Life=   /   

I have tried other methods, that work to display this, but I really need to know why this one won't work, and more importantly, how to fix it!!!
#93
      I have made a battle system, (which works 8) ) and am in need of Monster's for the character to fight.  I have worked my imagination dry.  I would love it if some of you would submit your monster's to me.  You will recieve full credit for the monster.  Make sure you do the following

(required) - Draw a monster of your choosing (or make one up)
(required) - Make sure it is a 90x90 sprite
(optional) - Include your monster's name UNDER THE PICTURE, NOT IN IT
(required) - Include (in your post) whether you wish to be recognized in the credits or remain anonymous.

please submit!!!

(multiple submissions allowed)
#94
I need a code that will allow me to do the following function.

Main character steps on hotspot 1, the hotspot sends the character to another room.  Shortly afterwards, the character needs to be returned to his previous room at his previous coodinates.  This is because the room he is transported to can be accesed anywhere in the world.  I need to know some way in which the character can go to previous room, at previous coordinates.

I have thought of two ways, both need work...

1.  Store roomnumber as a GlobalInt (which I don't know how to do) and store x and y coordinates as globalInt's (which I don't know how to do) then use the GetGlobalInt function to return the character to his proper place...

2.  Mabye there is an/some easy function/functions that could acclomplish this task???


help....
#95
Critics' Lounge / Character Battle View
Sat 26/06/2004 00:54:24
Ã,  Ã,  Ã, I am creating an RPG, (Battle system complete ;D ) and every character has a battle view.Ã,  This view represents the character.Ã,  I need help deciding which of these views is the best.Ã,  I will base the characters attitude on the battle view, so don't worry about what kind of guy he is.Ã,  Any C&C on these views, edits, or new views are highly appreciated....Ã,  Anyway, here are the views

1.


2.


3.


Thoughts...???
#96
     Okay, I need some serious C&C on this Main Character.  I don't have a program that can animate him, but I do have his current spritesheet...



I think his arms look like they are made of paper, and his legs don't quite look right either.  Any suggestions on how to fix these and others flaws???

PS- I would highly appreciate it if someone could put these into an animation, but no one has to  :-[


-many thanks in advance
#97
     I have an idea for the Compititions and activities forum.  Okay, here it is:

          The Wrong Hand....
                 A compitition where participants must draw a specified thing with their non-dominant hand, (i.g. if you are right handed, draw with your left, and vise-versa) and then scan it and post it.  The contest will take place from the 1st of the month to the 20th of the month.  Then the winner gets to set up the rules for next month's contest!

Example:
Draw a person mowing their yard....
There must be some type of lawn-care product in the picture, and there must be a tree of some sort in the picture.  And remember, use your wrong hand!!!!
#98
1.  In the game I am making, your current and max Hp's are displayed on a GUI.  In the script, I have SetGlobalInt(3, 20);
SetGlobalInt(4, 20);
On the GUI, I have a text label that reads
HP= @GI3@ / @GI4@
However, when I start the game, all the GUI displays is
Hp=    /   
What have I done wrong?...

2.  I am having trouble with the following code:


if (GetGlobalInt(18)==1) { //If attack order is MONSTER then YOU, then continue
      DisplaySpeech(YOU,"Foe's turn to strike!"); //Displays a message
      Wait(120);
      character[MONSTER].x-=10;//MONSTER moves towards YOU in a striking motion
      Wait(10);
      //(Here we would normally have a sound effect for attaking)
      character[MONSTER].x+=10;//MONSTER moves back
      Wait(10);
      SetGlobalInt(7, GetGlobalInt(7)-GetGlobalInt(1)); //Sets YOU's HP to YOU's HP minus MONSTER's attack power
}

The problem is that the code runs completely normally, only the character MONSTER does not move forward and then backwards.  What is wrong with this code?...
#99
(See subject :P)

I know this really doesn't belong here, so could someone just explain it to me and then I will lock this topic...
#100
Okay, I am starting a Pokemon style RPG, and I have some problems, Help would be appreciated.
1. How exactly do you think I should set up the monsters, like, say your facing MONSTERA and you catch it, how exactly could you make it be with you?  I have though mabye I could have only one enemy character, named MONSTER, and every time you get into a battle MONSTER's view is changed to match that of the enemy, as well as all of MONSTER's stats (which are global variables) then when you catch it, YOURMONSTER gets it's view and stats changed as well.  Pretty choppy plan huh?  Any suggestions???

2. How can you script a random monster to appear when you go over a hotspot, but with a certain percent chance, like:  50%-MONSTERA, 30%-MONSTERB, 20%-MONSTERC  . Is there a way to run a random like this, and if so, is there a simple way to run a random script???  Like Random(RunFunction, a-c) Or something like that???

Please, any help at all is highly appreciated!!!
SMF spam blocked by CleanTalk