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

#241
oh yes, it should work! (i've tried it right now) but you have to leave the 'onmouseclick' function as you had it before.
Anyway, you could try to read the manual for this kind of questions, you´ll find the answer faster and get more confident with ags if you figure it out by yourself  ;)
#242
why dont you put a "RunDialog(#);" in the "Any click" interaction in that inv. item?
#243
in order to select an inventory item for using it on something else, i think you should replace:
RunInventoryInteraction....
with:
SetActiveInventory(GetInvAt(mouse.x,mouse.y));
in the LEFTINV part of your mouseclick function
#244
Advanced Technical Forum / Re:Location-arrows
Thu 17/07/2003 02:04:04
you could use the new properties feature.
Set a propertie called exit, with 4 different values, up down left and right, for setting the arrow direction, and then in the repeatedly execute you could check if the property is set, and which direction.
That is, if i understood properties well.
#245
if you want the gui to pop up if the actual cursormode is 8 ,i think you should do:
on_mouse_click(int button){//cant remember the exact name of the function
if (button==LEFT){
if (GetCursorMode()==8) GUIon(#);//replace# with your gui #
else{ //what you had in the left click interaction
}
}
else if (button==RIGHT) { //whatever
}
}

Check the case in the function names, i cant remember them very well.
PS: Why using cursor mode 8 for inventory? just curious.
#246
And the PDF version:
AGS Ezine issue 2 PDF (663 kb)
#247
I think i read somewhere that one of the reasons for chris to not make AGS code public was the possibility of someone making such a program, so i don think its a good idea. If i would want some sprites from a game, i would ask the author.
#248
read carefully.... he is not "elmo" exactly.... ;)
#249
General Discussion / Re:LEC
Sat 12/07/2003 14:03:37
Sorry, i think i last edited them with a beta (ags 2.56 beta 1 i think). and i must say that i took the guybrush character from lucasfan's MI2 template
#250
any video that windows media player can play, i think
#251
hey, in the interface click function you forgot the look at, talk to and pick up.
Also, for the "GIVE" thing, i would use the same cursor mode as "use", and then a global int to check which mode you used, like the open, close... modes.
#252
Beginners' Technical Questions / Re:Convesion
Wed 09/07/2003 01:00:00
I just readed the first line, sorry.
QuoteIs there an easy way to cast an integer as a string.
Then the only thing i can think of is using StrSetCharAt, maybe:
function CharToString(string letter, char keycode){//you can use an int here instead of a char i think
StrCopy(letter,"x");
StrSetCharAt(letter,0,keycode);
}

But there must be another neater way to do it, which somebody will tell you  ;) (im not sure even if that way would work)
#253
much better this way!
But i think the perspective of the stairs beneath the door is a bit off
#254
Beginners' Technical Questions / Re:Convesion
Tue 08/07/2003 21:45:04
i think StrFormat("%d",integer) would do that
#255
QuoteDirty Underpants
Didnt you take LeChuck's underpants at the ending of MI2 to make the voodoo doll, and they were dirty?
#256
Ouch! i might change the lucas templates to use the new properties thingie, that way looks neater than mine. But it seems like i'll have the same problem i have with my properties system, is there (or there will be) a way to change the properties in script?? something like SetHotspotProperty or so?
#257
First of all, if you come up with a problem, the first thing to do is to read the manual, because probably the answer is there. (Its quicker for you and cheaper for Chris ;)).
open the help file, click in the tab labeled "index" and type "fonts" in the text field, and ther press enter.
There are the answers you want.
#258
its just because i have it that way in my script, but you could replace "parameter" with anything and it would work. (as long as you replace it at the two places with the same word, you know  :))
#259
try this: (i suppose that the option you want to turn on is #4 and the topic is #1):

// dialog script file
@S // dialog startup entry point
return
@1 // option 1
JAKE: What the hell?
CIRCUM: Pretty please.
JAKE: No you must have a valid reason.
JAKE: Like starting a crew
JAKE: or running erands for the mayor.
run-script 1
stop
@2 // option 2
JAKE: Im not allowed to do that Mr. Stances.
stop
@3 // option 3
JAKE: Well maybe you should plan this better.
CIRCUM: Aww crap!
stop

GLOBAL SCRIPT:

function dialog_request(int parameter){
if (parameter==1) SetDialogOption(1,4,1);
}

And in the "talk to" interaction just the rundialog function.
PS: dont write the  x, you must refer to a varable with the same name you declared it, so if you wrote (int xvalue) you´ll have to write if (xvalue==...)
PS2: Read the manual!! everything is in there clearly explained!!
#260
QuoteGLOBAL SCRIPT:

function dialog_request (int x1) {
if (1 == 1)
SetGlobalInt (0, 1);

1 is ALWAYS equal to 1  ;)
you probably wanted to write:
if (x1==1)

Oh, sorry, it didnt help at all, i didnt read the whole code.
SMF spam blocked by CleanTalk