I cant make any enimies work, how exactly do I make an enimie attack?
You could try provoking them.
Perhaps a witty one-liner about their mother?
Please be more specific than this. How have you set up the enemies, what have you tried so far, and what doesn't work?
I cant make any enimies work, how exactly do I make an enimie attack?
I tried making a hotspot enimie with a script and it didnt work and i have no clue how to make an enimie be an enimie
Yes, but you need to fully detail out to us what kind of game you are making? is this an arcade game where they are only coming straight at you, like a fps and you are stationary? perhaps like Time Crisis?
(http://www.absolute-playstation.com/gp1a/time_crisis_pt_ps_lr_2.jpg)
are you doing a shooter with shooter where the bad guys are practically stationary? ala Leathal Enforcers?
(http://www.defunctgames.com/pic/reviewpics/reviewlethalenforcers-3.jpg)
are you creating a third person view game, like Zombies ate my neighbors, or smash tv?
(http://review.japan.zdnet.com/special/xbox360live/media/smashTV_large.jpg)
Something else? Please be as specific as you can.
I am tring to make a game were you are playing and suddenly you are attacked
Please answer our questions. Be SPECIFIC. Tell us exactly how you have it planned out. We understand a little of what you are saying, but now I have it in my mind that it will be a bit like Final Fantasy. Where you're walking around and all of the sudden, you get pulled into a fight sequence. Is this what you are talking about?
I suppose I would use the random function (check the manual/help file) and I'd choose, lets say, 40 to be the number, out of 100 to be when to call the fight scene to start.
So you'd have your room, where you are able to walk freely around, and have repeadetly running, a check, perhaps with a "wait" function inbetween each check, or using a timer, to see if that number just randomized out of a hundred is equal to 40. If so, go to a new room, and begin the fight sequence, ala Final Fantasy.
yes'
I have two questions.
1) Have you practiced the script for a bit? Would you understand Def's code if he gave it to you? If nnot, then it's all a matter of practice for now.
2) Did you search for a similar topic?
But, hey, I made the same mistakes the first day I joined.
hotshot:
It's enemy and enemies.
I doubt that Def's code would help you. (Without long detailed instructions how to implement it.)
Try to figure out AGS using the manual, the tutorial inside the manual, check out the demo game and so on. By the time you get a basic understanding of how AGS and scripting works, you'll be able to write that code yourself.
As has been said, it's not really going to be possible without scripting. You should make sure you're at least reasonably familiar - and comfortable - with AGS scripting before starting this.
Scummbuddy actually went someway to answering you, so look at his reply again:
Quotehave repeatedly running, a check
So, in the Interaction Editor, this'd be in the 'Repeatedly Execute' interaction for the room you want the enemies to attack in.
Quoteor using a timer
Look up
Set Timer and
IsTimerExpired.
Quotenumber just randomized out of a hundred is equal to 40
Look up
Random to get the random number, and working with variables (the BFAQ (http://americangirlscouts.org/agswiki/index.php/Scripting%2C_Code_%26_Interaction#Working_with_variables:_the_basics) and any one of a dozen threads on the forums should help there).
Beyond that, you're going to have to finally answer the question on how EXACTLY you want the attack to happen. A recent Coding Competition (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=25282.0) had a few RPG-style options that might be of use, there's a couple of boxing-type engines and a couple of shoot 'em up scripts you could search for and use (the Open SOurce archive (http://americangirlscouts.org/agswiki/index.php/Open_Source_Games) might be some use), or you could try describing your own preference in detail and see what we can do (once you're sure you can't go any further on your own).