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

#1601
Quote
Code: ags


int ran=Random(3);
if (OBJECT1_FOUND == 0 && (ran==0)   cEgo.AddInventory (iObject1)) 
  {}
else if (OBJECT2_FOUND == 0 && (ran==1)   cEgo.AddInventory (iObject2)) 
  {}
else if (OBJECT3_FOUND == 0 && (ran==2)    cEgo.AddInventory (iObject3)) 
  {}
else 
 {
  Display ("Nothing was found.");
  }



If that's an exact copy/paste of what you have, I can understand all those parse errors.

Let's start, first your code seems to be lacking any connection to a function... so I'll add that:

Code: ags

function BoxLuckyDip() // giving it a name you can easy remember when you wish to use it.
{ // this starts this block of code
  int ran=Random(3);
  if (OBJECT1_FOUND == 0 && (ran==0)) cEgo.AddInventory (iObject1); // Note and remember to close the parenthesis, then add the command and end it with ;
  else if (OBJECT2_FOUND == 0 && (ran==1)) cEgo.AddInventory (iObject2);
  else if (OBJECT3_FOUND == 0 && (ran==2)) cEgo.AddInventory (iObject3);
  else Display ("Nothing was found.");
} // this ends the function and corresponding block of code


I'm not sure where you changing the OBJECT3_FOUND variable, but it probably would make sense to change it here when you give the item, so you would then have:

Code: ags

function BoxLuckyDip() 
{ 
  int ran=Random(3);
  if (OBJECT1_FOUND == 0 && (ran==0)) 
    { // note start of new block of code
    cEgo.AddInventory (iObject1); 
    OBJECT1_FOUND = 1;
    } // note end of this block of code... 
  else if (OBJECT2_FOUND == 0 && (ran==1)) 
    {
    cEgo.AddInventory (iObject2); 
    OBJECT2_FOUND = 1;
    }
  else if (OBJECT3_FOUND == 0 && (ran==2)) 
    {
    cEgo.AddInventory (iObject3); 
    OBJECT3_FOUND = 1;
    }
  else Display ("Nothing was found.");
} 


Hope this helps.
#1602
Quote
So... don't folks on this forum help if someone gets stuck with code/scripting?

Of course we do.  (nod)
What I meant is that the behavior needs to be coded. Unlike when you do an adventure game and can use the built in behavior... Say this, Walk there, etc. And all the "internal" coding is already handled.

Oh, and MAGS is the Monthly AGS competition, where every month a new theme is set and you have 1 month to make your game.  ;)

EDIT:
The 2 of Jack's games mentioned above:
https://www.adventuregamestudio.co.uk/site/games/game/2343/
https://www.adventuregamestudio.co.uk/site/games/game/2283/
#1603
AGS is meant to be a an engine specifically geared to point & click adventures. However, the fact that is, you can code it pretty much to do what you want. The proof is right there, there's almost no gender that hasn't been done with AGS...
Duals awesome fast paced platformer: https://www.adventuregamestudio.co.uk/forums/index.php?topic=53389.msg636532865#msg636532865 which started as a MAGS game and ended up as a commercial game.
But remember you'll have to code it all your self.

If your question is just: is it possible to do this? The answer is yes.
You should also consider what your objectives are for the game. As that might also point you into another engine.

Anyway, welcome and do so games. :) Try MAGS for a feel of time frame into doing stuff. Or do very short games just to figure out to code X or Y...
#1604
It sure looking awesome!  (nod)
Will check it and see how my french stands.  ;)
#1605
If he just names the files sequencialy and place each loop in a folder, then you can just import all sprites in the folder and have your sprites neatly in a sequence and easy to add to the view loops.
#1606
Make the game 32bits, then use a shade of dark with alpha transparency. Make sure you import the sprite with alpha transparency.
#1607
What exactly are you doing with this variable? RadiatorsOnNumber ?
I don't see you using it to check anything. And Where do you had ++ to RadiatorCount? Also, make sure you only give +1 once per Radiator, otherwise you may easily get past the 8.
#1608
That sounds like you want to make a VerbCoin system.

Edit:
Also, you better off to throw the 2 click template out the window, instead of trying to modify it, cause a lot is hard coded to react to 2 buttons.
There a few templates on the forum, search for monkey's Verbcoin.

I have a game using a verbcoin, but I ended up coding my own as non of the available ones did what I wanted. I used monkey's code as a basis and to learn how it worked, and the edited it to serve my needs-
#1609
There's aDrag and Drop module here: https://www.adventuregamestudio.co.uk/forums/index.php?topic=53332.0

Maybe it'll help or save you work.  ;)
#1610
Maybe try and make a video of it?
#1611
This might be unrelated, but it sounds a bit like if your PC hangs for a second and then speeds everything up to catch up.
Is this something you can replicate in other computers/systems?
#1612
Fun to watch from the outside.  (laugh)

To be honest I kind of suspected PP to be scum... something he wrote that I felt was inconsistent and "sounded" wrong to me... was trying to find it again, but that means I would need to re-read everything... but wasn't sure of any of the others.  (roll) And we all know Mandle is a pro in this game, so anything he says is suspicious...  (laugh)

Good game.  :)

PS - I don't think the Psychic should be alowed his last scan, since he technicaly was lynched during the day time. Maybe if he had been killed by the shapeshifter and sent the scan _before_ the kill order, then yes... but if they kill him before the scan order was sent no... :D That would put some stress on both scum and physhic to send they're order as fast as possible... (maybe 5 min tolerance or something)

PPS - Since I have no plans to play this game again maybe you should just agree at game start which rule one wants to play with.
#1613
Okay, so you mean you have an image texture that you wish to make transparent?

Try setting transparency to 90% or more. Color and border have no effect when you're using an image as BG in a GUI.

If that doesn't help, then please take a screenshot so we can see what you mean.
#1614
using blank template should have nothing to do with the GUI.

So what exactly happens when you display your GUI?
Is it suppose to show violet? be fully transparent? Be half-transparent? What color depth are you using and are you using a solid color or an image?
#1615
I was going to say the same as VW, it looks like a man with a wig to me too.  8-0
But I dodn't know enough anatomy to pin point how to fix it. But it just doesn't look like a woman to me.
#1616
TRAVELERS by LostTrainDude
Spoiler
Love the concept, but I fail to see what the objective was from the start. So I didn't play it that long. Add some game objectives, and I'll play it again. :D
[close]

The Era-Gone Trail by Mandle
Spoiler
Took me a while to figure what was happening, but once I took noticed of the "cat" I figured it out. I was already on my 4th or 5th play, when I noticed "veggie food"... and I was veggie food? "Oh, I can eat the red fruit!"  (roll) I'm still not sure, if I can influence the fight with the snake,' or if it's entirely "automatic"... so I just click all over it's head.
Placing food right on the edge of the room is just evil! Oh, and gathering the beads if extremely hard for some odd reason. It's like there's only one pixel to click on.  ???
[close]

Shamrock High School: Graduation by VampireWombat
Spoiler
Love the art, and the game started intriguing... but unfortunatly it never developed and it ended before it began. Go finish it.  ;)
[close]

Heroes of Wyrdale by Jack
Spoiler
Awesome art work!  (nod)
I was confused with the controls. And wondered why the character didn't walk, even tried the keyboard. When that didn't work I decided to start exploring the area, and obviously right clicked to start examining the area... and oh... that walks! Wasn't crazy about the controls, specially the shooting part.
Due to time constrains the game consists mostly of shooting. I had the same problem as Kastchey, though I managed to run away once I realized that just continue to try and shoot the robots was pointless... The end was a "nice" twist.  :-D
Now... about those awesome puzzles.... I'll be waiting for those.  ;)
[close]

My vote goes to:
Spoiler
The Era-Gone Trail by Mandle as it was the game I enjoyed playing the most and keept me playing the longest (I just finished it for the 1st time!  :-D)
[close]

Good job everyone. Was great to see 4 entries all of a sudden.  (nod)
#1617
You are missing the { } brakets to hold your code in a block and the last if needs to either be a else or else if.

Essentially what you currently have have is if ( WarningCounter <= 0 ) cNinja.StopMoving() ; Which of course runs cause your warning counter is at zero at the moment. then you run all the next code where you add +1 to the counter. Then you execute if ( WarningCounter <= 1 ) cDrunk.Say("Alright but don't say I didin't warn you.") ; Which of course runs, since you previously told it to add 1 to the counter, and after that you run all the code after that.

What you want to do is:

Code: ags

function cactus_Interact()
{
  cNinja.Walk(1594, 536, eBlock, eWalkableAreas) ;
  if ( WarningCounter <= 0 )
  {
    cNinja.StopMoving() ;
    cDrunk.Say("I wouldn't do that if I were you.") ;
    WarningCounter++ ; 
    cNinja.FaceCharacter(cDrunk) ;
    Wait(150) ;
  } 
  else
  {
    cDrunk.Say("Alright but don't say I didin't warn you.") ;
    cNinja.FaceLocation(1990, 450) ;
    Display("You reach out and touch the cactus") ;
    player.Say("Ouch!") ;
    Display("Well that cactus did strange things to your body. It was wonderful while it lasted. All those bright colors and wacky things you saw. But...") ;
    Display("Then you died.") ;
    player.ChangeRoom(300) ;
  }
}
[/ags]
#1618
If it' not a "steam only" I would love to play test it.  (nod)
#1619
Congrats and looking forward to see what it will be.  (nod)
#1620
Oh, that sounds so awful, Mandle.  :(
Wb anyway, we missed you!
SMF spam blocked by CleanTalk