Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: theswitch on Tue 20/03/2007 22:54:30

Title: randomly selecting a badguy
Post by: theswitch on Tue 20/03/2007 22:54:30
two things first

first: hello, its been awile since I'v posted, soo I'd just like to say hello :)

second: I couldent come up with a better topic title ???

OK

what I want to do in my rpg game (its simple game don't worry), what I want to do is find the easyest way to create a large number of baddies/creatures etc with fighting stats, name mabe even image.

THAN

have my game randomly select one of these creatures to fight me

SO

what would be perhaps the most uncluterd way to do this. . . unless their really is only one way, I havent coded in awile and am still new to coding, sorry for the simple question :-[

I'm looking for the import function command I presume :-[

EDIT: I just need help with randomly selecting a creature with all its data, I CAN create these creatures on my own, I know that much, and the fighting I can do too, just to clarify. . . . sorry
Title: Re: randomly selecting a badguy
Post by: Khris on Wed 21/03/2007 00:53:48
How did you organize the enemy data...?
Did you use a struct? Or arrays? Or just characters?

Come on people. How are we supposed to help without even the most basic info about your problem?
Title: Re: randomly selecting a badguy
Post by: theswitch on Wed 21/03/2007 21:09:47
oww

. . . .

:-[




I'm so sorry

anyhow, I guess I'll look into arrays or structs then in the manual, I just want a good way to organize and call my data, thats the basic info in my way of saying it. . . .  :-X
Title: Re: randomly selecting a badguy
Post by: Ashen on Wed 21/03/2007 21:18:48
Khris, mind your attitude. It's not that yourpoint is wrong, just that you shouldn't be making it. Or atleast, makign it a bit more politely. People not making that distinction is why the 'don't act like a moderator' rule exists.

theswitch, how are you creating & organising you badguy data? Structs and arrays are probably the simplest way, but there might be a way to do what you want without having to re-write everything you've got.