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

#7141
Advanced Technical Forum / Re:2d arrays....
Thu 13/11/2003 07:08:14
;D

Hey! That example is not realistic, there should be relation among the same person:

Eric worships Eric!
#7142
Quote from: evilspacefart on Thu 13/11/2003 05:10:16
Hopefully you're going to fix the midget Roger, but this isn't critics lounge.

No, I'll say no.
#7143
Advanced Technical Forum / Re:2d arrays....
Thu 13/11/2003 04:13:06
"Real" 2D array is not possible, but you can fake one via a 1D array.

Eg you want to have a "2D" array of 5*4 integers, just define:
int blah[19]; //5*4=20, this defines elements #0 thru #19

When you want to refer to element, say [2][3], just use blah[11] (13=2*4+3). In general if you want to refer to element [a], just use blah[a*4+b]. (that "4" is because there are 4 possible numbers in the 2nd index)

To find a and b back from c of blah[c], just do:
a=c/4;
b=c-(a*4);

Eg, for blah[11], it refer to element [2][3] of the "2D" array, because:
2=11/4; //note integer division
3=11-(2*4);
#7144
Note I just made some slight mods (eg I mistakenly used () instead of [] for arrays), there may be more.
#7145
Heh, then complete part 1 first and see if you can still continue.
#7146
(continued)

First put on top of global script:
int loctype, locnum, clickx, clicky;

Now you can script the code for bringing up the GUI (prolly in "onmouseclick() event), so when the player clicks on something, do something like (warning: may contain pseudo code, please clean it yourself, here I assume the GUI is number 5 and the three action buttons are #1, #2, #3):
[code
clickx=mouse.x;
clicky=mouse.y;
loctype=GetLocationType(clickx,clicky);
int actions[2];
if (loctype==0){//nothing, GUI or inventory
//Blah bla bla do something or ignore it, depends on what you need
} else
{if (loctype==1){//hotspot
locnum=GetHotspotAt(clickx,clicky);
action[0]=GetHotspotProperty (locnum , "action1");
action[1]=GetHotspotProperty (locnum , "action2");
action[2]=GetHotspotProperty (locnum , "action3");}
else if (loctype==2){//character
locnum=GetCharacterAt(clickx,clicky);
action[0]=GetCharacterProperty (locnum , "action1");
action[1]=GetCharacterProperty (locnum , "action2");
action[2]=GetCharacterProperty (locnum , "action3");}
else if (loctype==3){//object
locnum=GetObjectAt(clickx,clicky);
action[0]=GetObjectProperty (locnum , "action1");
action[1]=GetObjectProperty (locnum , "action2");
action[2]=GetObjectProperty (locnum , "action3");}

int act,coutn=3;
while(coutn){
coutn--;
act=action[coutn];
if (act==0) SetLabelText(5,coutn+1,"no action");else
if (act==1) SetLabelText(5,coutn+1,"look"); else
if (act==2) SetLabelText(5,coutn+1,"use"); else
... blah bla bla
GUIOn(5);
}

Then you could just do lazy things, set the action of button #1 to "run script..." and type in:
ProcessClick(clickx,clicky,MODE_LOOK);

set the action of button #2 to "run script..." and type in:
ProcessClick(clickx,clicky,MODE_USE);

set the action of button #3 to "run script..." and type in:
ProcessClick(clickx,clicky,MODE_TALK);

Just make sure you remove/comment all part of the codes concerning mouse mode changing and make it stick to MODE_WALK.

When you want to script a respond for a say, hotspot (same for character, obect,etc), just put whatever you want to happen for it with "action1" in the "look at hotspot" interaction, put whatever you want to happen for it with "action2" in the "Interact with hotspot" interaction, and put whatever you want to happen for it with "action2" in the "Talk to hotspot" interation.


I think it may be quite messy (and untested, so you may need modifications), but I hope that gives you some idea.

damn the []'s are messing up with YABB codes, just reply to it to see the plain text.
#7147
Ah. The transparent cursor part may be impossible at the moment, so I'll just ignore it for now.

For teh customizable actions on GUI, actually it's not really difficult to script (as I had actually planned exactly the same thing myself).
First you may decide for a max limit on how many actions a hotspot/object could have, here for definiteness, I'll use 3.
Next you have to make a list on what number represents what action, example:
0 - no action
1 - look
2 - use
3 - pick up
4 - smell... etc

Now, here is the important part:
In agsedit goto hotspot/object etc screen and select "property...", you may have to choose "edit schema..." if you already defined some properties (all game items share the same set of properties at the moment, so just create these stuffs once and all objects/characters/hotspots are immediately capable of having them), right click and create a new property.

Call it "action1", make a description like "action for 1st GUI option", select "Number" in type and set its default value to 0 (ie "no action" from your list). Repeat this to create properties "action2" and "action3".

Now, when making your game, if say, you want to bring up the GUI with the actions "look", "smell" and "no action" while clicking on a hotspot, just set the property of the hotspot (see your list):
1 for "action1"
4 for "action2"
0 for "action3"

(Same procedure for characters, objects, etc)

(too long, continue on next post)

#7148
After is right. If you're playing the new beta version, it's just released as a single package, so if you complete part 1 you would go to part 2, etc.
#7149
General Discussion / Re:CJ is not Jesus
Thu 13/11/2003 02:27:37
It's nothing at all, don't mind that.

All I want to say is "get over it", jokes mean harm if people are sensitive (note I don't use "over-sensitive", as everyone has his/her own limits, and there sure are harsh jokes that can offend many) to it and be offended, even though it may not be teh original intention. And I think that the main purpose of most religions is to make people happy and live in harmony (sorry I make an assumption here again on something I'm not really familiar with), if someone becomes angry or sad because of his/her own belief, there may be something wrong with it. I personally don't like the fact that some people of different religious believes attacking one another just to defend for their own views, which I don't think is the original intention of any religions and I think most of the believers won't act like that, since if one thinks the religion he believes is the truth, believers of other religions have the same thought too, so they are all equal. Same applies to nonbelievers (like me), most of the time they don't believe in religions is just because they don't feel the need to, but not against the religions.

So even we have different beliefs (and values, etc., these are always different amongst persons), we are not necessarily against each other. So everyone would be happy then.

If one person makes a joke that may be connected to other religions and he doesn't really mean harm (there WERE jokes that MEAN harm), everyone should just get over it and not treat it so seriously, otherwise it would just make people unhappy and possibily filled with hatred, which I think is not the intention of religions.

I myself did sometimes make jokes on religions, some may even be quite offesive (dig up the thread of me battling Squinky!) and I'll say sorry to everybodies who might have been offended, but I hope that won't be causes of hatred and dislikeness.

Enough BS by me, get over and cheer up everybodies!
#7150
What's the LSL7 GUI like?
#7151
acdos --setup

Bear in mind is that unfortunately the setup programme of the DOS version hasn't been updated for a long time, so there're some options missing there.
#7152
Well if it's just a change of saparate resources, like a music/sound file or even a room file, just throw the new files in the games' directory and the engine would use the new files instead of the ones present inside the packed game files (Actually that's similar to how Sierra handled patches for SCI games). But of course if you change a room, it may render old savegames useless (or strange things can happen) and require you to replay the game from the beginning.

But if you change other things, such as the sprite set, the global script, and some of the other settings, nope, you can use this "patch" function at the moment.
#7153
Quote from: Pumaman on Wed 12/11/2003 21:51:26
Well ok yes, first graphical "3d" animated adventure :P

Hehe according to magazines I read back in the 80's it was called a GRAPHICAL 3D ACTION ADVENTURE.
#7154
Spoiler
Just talk with her until she gives you back your tie
[close]

Spoiler
You have to choose NON-SENSIBLE dialog options to get her angry, otherwise you wont get your tie back.
[close]
#7155
General Discussion / Re:I am new here! :D
Wed 12/11/2003 09:27:42
Welcome aboard! Hope you'll like AGS!
#7156
General Discussion / Re:CJ is not Jesus
Wed 12/11/2003 09:06:42
Well, personally I don't really care much about this kind of things, I have no religious belief, and all I know is that people would know it is a joke if it is a joke, even religious people can have a good laugh, as these are nothing so serious, as long as they are faithful to their believes in their own hearts.

Note that there are many different regilions out there, and often times a joke may or may not be connected to one's belief, but I'll say that at least some of the people won't be annoyed, in that case why don't everyone view it open minded? Personally I think criticizing other non-believers of insulting one's own belief may not be a good thing, as the one who made the jokes may not really mean harm, only when someone got sensitive would make the condition worse, and turn potentially funny stuffs into overly serious debates. (I won't disagree that sometimes there are jokes which are too much over the limit, though.)

But it did strike me in my head whether CJ is Jesus, so I asked our most intelligent electronic tutor for it:

Quote
***Transcript of 11/12/2003... starting at 16:45
***Talking to: Gilbert
DAISY> fly!  
GILBERT> is cj short for christ jesus?
DAISY> is cj short for christ jesus?
GILBERT> i asked you.
DAISY> is cj short for christ jesus?
GILBERT> answer me.
DAISY> i don't know, so i asked you.
GILBERT> i don't know, but cj is saviour to us like jesus is saviour to those religious people.
DAISY> come on, i think you don't know, but cj is saviour to go today?
GILBERT> today? always! cj was saviour yesterday, is saviour today and will be saviour t0m0rr0w!
DAISY> i watch tv, but only when in rome, do you want a good mood.
GILBERT> don't change the topic.
DAISY> i am always making sense.
GILBERT> so, back to topic, is cj jesus?
DAISY> is cj short form of adventure game studio.
GILBERT> maybe, but what about jesus?
DAISY> corn job is cj short for words.
GILBERT> ah thanks, i have an answer now, corn job is jesus!
DAISY> yes, give me to have an answer now, corn dog.
GILBERT> corn dog! xaxaxaxa
DAISY> you have all i want is actually a corn dog.
GILBERT> yeah! mystery solved. now i can sleep.

Don't take it serious, it's just intended to be funny.
#7157
I want an answer too, my cat always does exactly the same things.
#7158
Actually I don't care about the pick of the month (as my game won't be there anyways ;D ), I just want to ask when Cj would change the vote topic.
#7159
Quote from: Goldmund on Wed 12/11/2003 03:11:05
Does it mean our previous backgrounds are going to look better or do we need to save them in this format first??
If they're already imported in a 16bit game, you need to report the graphics in 32bit mode, as when AGSEdit imports them in 16 bit mode, the graphics were already downsampled to 16 bit.
#7160
http://www.agagames.com/AGSwalks/Calsoon2.htm
What is it?

Please DON'T type in all CAPS, it's been stated clearly on forum rules, and that's not a polite way of asking.
SMF spam blocked by CleanTalk