Author Topic: Nice useless script: BulletText.  (Read 6342 times)

0 Members and 1 Guest are viewing this topic.

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: Nice useless script: BulletText.
« Reply #20 on: November 22, 2007, 08:53:51 am »
I think the normal text was better, using bullets in text formation seem a clumsy way to do something that can already be done in a better way.

And besides, I really don't need any more lag, I already get about 180-260 in all servers usually.

duh....

1.: This script of course only serves for special purposes and can be used for funny gimmicks. It's not meant to replace the usual DrawText

2.: It doesn't cause any ping increement but rather little lag spike that can cause a very short moment of warping or stuff like that.
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline PKS|Shooter

  • Soldier
  • **
  • Posts: 130
  • Dont fuck with us!
    • PKS - La Familia
Re: Nice useless script: BulletText.
« Reply #21 on: November 22, 2007, 02:26:32 pm »
DAMN NICE :D

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: Nice useless script: BulletText.
« Reply #22 on: November 25, 2007, 09:55:06 pm »
what is ord()

btw, if you change text in drawbulletstring to uppercase(Text) then it will write text even if it's lowercase
« Last Edit: November 25, 2007, 10:03:11 pm by Kavukamari »
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Nice useless script: BulletText.
« Reply #23 on: November 25, 2007, 11:46:58 pm »
Ord() returns the ASCII code corresponding to the character.

I didn't use UpperCase(Text) because lower case characters can be added to letters.txt
urraka

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: Nice useless script: BulletText.
« Reply #24 on: November 26, 2007, 12:57:06 pm »
well uppercase() is a good temporary fix (until someone adds lowercase letters)

btw, how would you add a slash ( / ) would you only put two coords in letters.txt and the script would fill in the rest of the bullets?

(like (0,0) (50,-100) or something?)

so would ord('i') return the chr() value for 'i' ?
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Nice useless script: BulletText.
« Reply #25 on: November 26, 2007, 01:05:34 pm »
The '/' would be like:

Code: [Select]
/=0.7,1,{[0.0, 2.0],[0.7,0.0]};
The format is
character=<width>,<Number of Lines>,{[x1,y1],[x2,y2]},..

The width of the letters already done is 1.0, and the height is 2.0. That's why I chose 0.7 for the width of this character.

As for the other question:
Code: [Select]
'i' = chr(ord('i'))
urraka

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: Nice useless script: BulletText.
« Reply #26 on: November 26, 2007, 02:55:43 pm »
does ord() work with sentences too?

ord('all your base are belong to us!')

Quote
Code: [Select]
for i := 1 to Length(str) do
    ord(str[i]);

is that w/o str being an array?
« Last Edit: November 26, 2007, 03:08:16 pm by Kavukamari »
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Nice useless script: BulletText.
« Reply #27 on: November 26, 2007, 02:58:14 pm »
And what do you want to get from that? If you want the code of each character you can iterate through the string:

Code: [Select]
for i := 1 to Length(str) do
    ord(str[i]);
urraka

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: Nice useless script: BulletText.
« Reply #28 on: November 26, 2007, 05:18:38 pm »
just wondering, because these things are good to know if I suddenly need to script something with chr()'s
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline Ariakas

  • Major(1)
  • Posts: 12
Re: Nice useless script: BulletText.
« Reply #29 on: November 27, 2007, 03:17:59 pm »
PerroAZUL Esta Bueno El Script Todavia No Lo Bajo Pero Se Ve Bueno :D

Offline Iq Unlimited

  • Flagrunner
  • ****
  • Posts: 864
  • mr. foobar2000
Re: Nice useless script: BulletText.
« Reply #30 on: November 27, 2007, 04:50:25 pm »
PerroAZUL Esta Bueno El Script Todavia No Lo Bajo Pero Se Ve Bueno :D

English only please.