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

#21
ok I had another go at it and got kinda lost. . . agien, anyways, my first post here was a liitle messy, so I'll make it a bit clearer

all I want to do is have my button click scripts to be seperate from the global script, because right now everythings in the global script, thats all, whats the easyest way to do this?
#22
OK OK I know, this is SOMEWHERE on the forums, but I can't find it, its not in thye bfaq ether (hint hint)

yea I can make a module in the module manager, I make the header import function bla bla bla, BUT I want it to work on mouse click of a certain button, now mabe this is the wrong part. . . when I double click the button first time (in gui editor) it adds a section to the global script and in this sectoion I can put in the stuff I want to happen, now mabe the default functin code it gives me is wrong

function test_button_Click(GUIControl *control, MouseButton button)

I copy/pasted this into my module header also saying Import before the above text ofcourse,


so I guess I'm supposed to get rid of the above and use on_mouse_click (MouseButton button)

BUT
the manual doesn't give me enough info on how to use it (as I'm new to scripting). . . . (as youv noticed by now :))

so all I'm saying is how do you make a button exicute code from a module at any time in the game (while the buttons there)

I'm suprised there isn't a tutorial on a simple thing like this, or mabe I'm just SLOW :-[
#23
ok so I'm making this rpg attack battle system, yes ANOTHER one hehehe ;D, but its mine, mine I tell you :P

anyhow. . .

I have a gui showing player and baddie stats etc, there are two characters facing off agienst eachother, player and the bad guy with an image for each. Theres a button on the gui that starts the attack round called "attack", when I push the attack button the figure (character) that represents me the player moves towards the bad guy using the character.move command

the character doesn't move untill the whole script ends or when I make the gui visable false, but it still won't happen till the end (the character moving)

. . . .

wait a minute. . . (thinking)

. . . . .


I'm running through the script index agien and um. . . hmmmm whats this ???
character.walk

hmmmm

didn't see that before

hmmmm

let me see. . .

give me a sec. . .



. . . (working). . . . . .

interesting, there is an example under character.walk that goes like this

character[EGO].Walk(155, 122, eBlock);

hmmmm

I think I figured it out

I'll quot the example:

will make the character walk to 155,122. The script will not continue until the character has reached his destination.


. . . (trying it out now). . . . . .


HOLY SHAMALA IT WORKS

I can't belive I missed that, I could have sworn it wasn't there before

mabe there is somthing we the AGS community needs to know about the ominous internet update service that has been mischeviously programmed into ags

;D
#24
ok ok. . .. hmmmmm

I'm stuck agien, so how do you display the same attack hit on the health and in a pop up message at the same time,

the random number has to be subtracted from the health AND shown in pop up text (the same number)??? how is this done. .. . hmmmm :-[
#25
another question. . . do you guys know a good place to upload stuff, I can work an ftp program but where should I go first, I used to have a geocities site, and yea I'm thinking free
#26
 :DWOW thanks alot guys, I was really stumped on this and I did look around for the answer, thanks alot, I apreaciat it (spelling hehehe) :)
#27
hello all, yea I'm new here, I just have a couple questions to get my project started, I'm making a kind of freelance game, a kind of free form RPG where you do what you choose in the world. But WAIT, I know what your thinking, this is not some super project, this rpg will be very very VERY simple, and I want it to be so, I do have somthing to show but I need somewhere to upload it first, anyhow there is one game that my project is inspired by here http://www.nielsbauergames.com/smugglers3.html

on with the questions. first I should say that I got a turn based combat going on and it works, complete with semi random numerical outcomes (like any normal RPG), but I have run into two problems

Q - I have a small random number generated than I add a larger (non random) number to get what the attack hit would be. I display the health of me and the oponent in a number (for each) and the health gets updated with each attack on me or the bad guy. my problem is how do I display the numbers for each attack seperatly in a text message (pop up message), I could display the health at that point in the game but I just want to say how much damage was done instead :(

Q - when generating a random number is there a way to do a greater than / less than kind of thing, all I want is to tell the player the percentage chance they have to hit the bad guy, I could do this if there was a < and > things in the code, perhaps there is. . . hmmm


#28
Quote from: Def on Fri 15/04/2005 10:21:57
Quote from: Wabbit on Sat 12/02/2005 00:06:28
Quote from: Def on Mon 12/07/2004 18:43:59
http://home.quicknet.nl/qn/prive/jjj.dekker/rpg.rar Something me and Chrille made a long time ago. It's an rpg (just a start though) and it's a bit like those old console RPGs. You can walk around, and encounter random monsters and fight them. It just shows it is possible to make it in ags :)
Played your game. It was addicting. Will you release the source code? Thanks for the cool RPG game.

I don't think I have the source code anymore :( Chrille might still have it somewhere though.

WOW, this is THE RPG demo for AGS, I got really pumped when I tryed the demo, it seems even better than RPG Maker stuff, I'm not interested in the retro console look but who cares, it actually works and it works well, I'm interested in if there could be any notes on how you made it, any pointers I mean. not a tutorial, this is very cool, it kinda makes you go "man AGS is the way to go" with rpgs. I guess the reason I say that is with 2.7 the coding seems much easyer (I'm a newb but experenced with other easy languages, java etc)

I am also very interested in making a game with random stuff, a space trading game actually, you know elite, freelancer etc but 2D and not flashy 2D, somthing similar to this. . . if your interested http://www.nielsbauergames.com/smugglers3.html
SMF spam blocked by CleanTalk