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

#6521
Quote from: Pumaman on Thu 22/04/2004 20:49:50
1. Actually there's an undocumented feature you can use:

StrSetCharAt(mystring, StrLen(mystring), keycode);

A much safer (and more easily understandable) way is:
StrFormat(mystring,"%s%c",mystring,keycode);

right ? ;)

(I'm not sure, but I suppose your way may not work well if the user somehow truncated the string by setting a character to 0, eg.

StrCopy(mystring,"BLAHBLAHBLAH!"); //BLAHBLAHBLAH!
StrSetCharAt(mystring,4,0);//BLAH
//Now suppose keycode=='T'
StrSetCharAt(mystring, StrLen(mystring), keycode);//BLAHTLAHBLAH!

which won't make the string into "BLAHT" as expected, right?)



#6522
Why, if you only need a few Chinese characters, just draw them, if you want to complete all messages with it, just forget it for teh time being.
#6523
Heh but I didn't mean the desert scenes (though that's evil too), I meaqn teh maze.
#6524
* Gilbot V7000a giggles too!

Yay that's what you'll see of Andail's bg in AF!
#6525
I just mean that unlike strings, you can manipulate char variables like integers, and use them ambigorously, like for example:

char tmpchar='A';



tmpchar+=2; //will make tmpchar into 'C'
#6526
Heh did you read my "easier" way after edit? ;)

Nice word for the much more compact codes.
#6527
Quote
xxx: How can I return one character as a string for this comparison?
Try the hard way:
StrFormat(tmpstr,"%c",StrGetCharAt(buffer,charpos);

So:

function StrCharConv(string buffer) {
  int charpos; // stores character position

  charpos = StrContains(buffer,"ä"); // search for special character Ã,, or ä in supplied string
  if (charpos > -1) { // special character found
  StrFormat(tmpstr,"%c",StrGetCharAt(buffer,charpos);
   if (StrComp(tmpstr,"Ã,,") == 0) // special character is uppercase
      StrSetCharAt(buffer,charpos,3); // replace with character standing in for Ã,,
   else // special character is lowercase
      StrSetCharAt(buffer,charpos,4); // replace with character standing in for ä
  }

  // more replacements to come
}



Quote
Of course it would be easiest if there were a case-sensitive StrContains function.
I'm not sure (as I never type accented characters and I don't know how anyways), but maybe the case-insensitiveness applies only to the standard A-Z alphabets, so accented characters in different cases maybe be considered different already, you may need to experiment though.


Ah there's a yet easier way (I won't write the full codes now, I think you understand it):
if (StrGetCharAt(buffer,charpos)=='Ã,,')  { blah bla bla

Note: A character is a one byte integer, so you can use = and == directly.
#6528
No, I assure you.

AGS cannot display double-byted characters, and there won't be many people who would use it anyways.
#6529
I think there was a similar thread, but it's probably old and warn, who cares? So I like to have a new one.

It's interesting that I have slightly different views from you:

- Mazes. The maze in KQ5 was evil and crap, the one in Kyrandia was GREAT.

- Missing interactions. Maybe AQ1 should get more publicity :D. But IMO there should be a well balance instead, if there're too many interactions, it may cause distractions and even make the game annoying and too hard to finish.

- Keyboard controls. Depends, if there're no pathing finding algorithm, I prefer keyboard, mouse control is in general not really good for such things (See Mean Street 3 and 4).

But now, back to the topic, thing that I hate most in adventure games is:

[size=24]MATH PUZZLES!1![/size]
#6530
Quote from: Dave Gilbert on Wed 21/04/2004 19:02:22
It was done in Quest For Glory 4, as I recall.  And in Loom.  Their mouths didn't animate, though.

The mouths did animate in the PC 256 colour CDROM version of LOOM (tm), the problem with that version, though, was that 90% of such close-ups were removed due to their laziness.
#6531
I never tried, but maybe it works in the "hard" way.

Like:

Display("%c is a special character", 12);
#6532
Heh no, Rodekill was evil enough already.
#6533
General Discussion / Re:What do you DO?
Thu 22/04/2004 05:17:00
Hehe Kinoko, you reminded me of this thread.

Read DG's post. ;)
#6534
Actually IMO if you want to use AGS to its boundaries, you should use whatever internal features and NOT a plugin. Moreover, bear in mind that using a plugin breaks compatibility.
#6535
This is still being posted on?

I think to avoid confusions, the first post subject should be edited to include words like [April Fool].
#6536
Why? You can change details or even draw more.

Like, for example, change all the grass to iron needles.
#6537
Moreover, I think it's just a concept art for reference, you don't need to follow exactly the original details, so Mr. C., that means you can make it without the grass actually.

Andail, Right?
#6538
General Discussion / Re:What do you DO?
Thu 22/04/2004 02:00:33
Text Book Editor for a local publisher.

Graduated from the University of Hong Kong for a MPhil degree in mathematic four years ago.
#6539
Yeah, and since you design only simple b/w fonts, you don't really need to use other tools like M$Pain or PSP or PS or whatever, just draw it with given tools.

And I just see that if you copy a character, the copied content would be displayed as well, real handy!

* Gilbot V7000a decides he should uninstall SCI Graphics Studio now.
(And no, SCI Graphics Studio never crashed for me, but the save button never worked tricked me that I often lost changes)
#6540
Quote from: shbazjinkens on Wed 21/04/2004 05:03:47
Do you have a question? I don't understand your point.
I see that's no, he's just saying hi.


Welcome aboard, Fronzel.
SMF spam blocked by CleanTalk