Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
23 May, 2013, 18:47:51 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 2 3 [4]   Go Down
  Print  
Author Topic: npc and signs -  (Read 2125 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 03:20:13
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #45 on: 19 January, 2006, 13:25:00 »
0

I thought you might like to see the routine that I made for the text, which is based off of Kevins' but mine is a bit smaller Smileysmile.gif

prgmZTD:
3->X:3->Y:1->C:2->W
While W=2
Text(X,Y,Sub(Str0,C,1
For(A,1,# ; The higher the number, the slower the text is displayed
End ; If you do not want variable text speed, you can take the For and End statements out
C+1->C:Y+4->Y
If sub(Str0,C,1)="/
Then
C+1->C:X+6->X:3->Y
End
If sub(Str0,C,1)="+
Repeat getKey
End ;Wait for Key routine
ClrDraw
3->X:3->Y:C+1->C
If sub(Str0,C,1)="*
1->W
End

String example: "ABCDEFGHIJ/KLMNOPQRST/UVWXYZ+ASIOIWEIDHFKH/HAOSUHF/ASHDFOAOIH+*"->Str0
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
kalan_vod
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 15 July, 2011, 07:40:04
Date Registered: 01 September, 2008, 01:02:11
Posts: 2992


Total Post Ratings: +9

View Profile WWW
« Reply #46 on: 19 January, 2006, 15:04:00 »
0

looks pretty good, I made mine a while back (last year in high school).
Logged
Spellshaper
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 19 July, 2011, 03:36:54
Date Registered: 07 September, 2008, 07:32:47
Location: Spaaaaaaaaace
Posts: 1998


Total Post Ratings: 0

View Profile
« Reply #47 on: 19 January, 2006, 17:08:00 »
0

nice, small and clear... :thumb:google.gif

mine has too many If then end for special chars, that
Logged

tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 03:20:13
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #48 on: 19 January, 2006, 17:52:00 »
0

Without the variable text speed, it is almost lighting fast. Cheesybiggrin.gif

Let me know though...
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Spellshaper
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 19 July, 2011, 03:36:54
Date Registered: 07 September, 2008, 07:32:47
Location: Spaaaaaaaaace
Posts: 1998


Total Post Ratings: 0

View Profile
« Reply #49 on: 19 January, 2006, 18:13:00 »
0

uuuhkay... compared to mine yours is just... speedy... :bow:worship.gif
Now I have to make mine better :evil:devil.gif
Logged

tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 03:20:13
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #50 on: 19 January, 2006, 18:22:00 »
0

MWHAHAHAHAHAHAHAHA!!!!!!

You shall never accomplish this task! You are DOOMED!

:rofl:

Arcane Wizard posted something on unitedti:

QUOTE
"You can split the text into lines and display each seperately.->Str0
For(L,1,int(Length(Str0)/16
16(L-1)+1->S
16->E
Length(Str0
E-(16-16fPart(Ans/16))(E>(Ans-16L
Disp sub(Str0,S,E
End

Replace 16 with the allowed length of each line. For example, you could use 20 if you place the text on the graph screen with Text( instead of Disp. Then you would use Y+7(L-1 to determine the vertical display position of the currrent line ( Text(Y+7(L-1),X,sub(Str0,S,E ).
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Spellshaper
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 19 July, 2011, 03:36:54
Date Registered: 07 September, 2008, 07:32:47
Location: Spaaaaaaaaace
Posts: 1998


Total Post Ratings: 0

View Profile
« Reply #51 on: 19 January, 2006, 18:27:00 »
0

kewl... this calls for some major thinking on my part...
I
Logged

tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 03:20:13
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #52 on: 19 January, 2006, 18:31:00 »
0

Only prob with Arcane's code is that if it isn't divisible by the selected number, you will get a domain error. Winkwink.gif

That is why I am just gonna stick with what I got...
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 18:03:25
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50227


Total Post Ratings: +2615

View Profile WWW
« Reply #53 on: 19 January, 2006, 21:40:00 »
0

nice stuff, now ROL3 is doomed O_Oshocked2.gif
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 03:20:13
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #54 on: 19 January, 2006, 21:55:00 »
0

Well, Kevin, I think it is time for you to go through and update the code. Winkwink.gif

Especially now that there is resource... Cheesybiggrin.gif

BOT:

Remember how my map segments are stored? I am going to use a similar method to store my dialogues, I want to store all of them within a certain area as one string. Then using 2 variables, and the sub( command, call the specific part of the string, and store it to a diff string, then delete the one with all the text in it. Smileysmile.gif

What do you think?
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
tenniskid493
Guest
« Reply #55 on: 19 January, 2006, 22:09:00 »
0

sounds like a good idea.  But how big are those strings going to be.  If you store more than like 10 dialogues in one string..the string is going to be massive.
Logged
tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 03:20:13
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #56 on: 19 January, 2006, 22:18:00 »
0

I... dont know yet. That will be one other thing that I have to experiment with...
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
dragon__lance
Guest
« Reply #57 on: 19 January, 2006, 22:33:00 »
0

QuoteBegin-tifreak8x+19 January 2006, 21:55-->
QUOTE (tifreak8x @ 19 January 2006, 21:55)
Well, Kevin, I think it is time for you to go through and update the code. Winkwink.gif

Especially now that there is resource... Cheesybiggrin.gif

BOT:

Remember how my map segments are stored? I am going to use a similar method to store my dialogues, I want to store all of them within a certain area as one string. Then using 2 variables, and the sub( command, call the specific part of the string, and store it to a diff string, then delete the one with all the text in it. Smileysmile.gif

What do you think?

heheheheh, thats wat i did. hmmmmm....gonna have to see if ur text routine runs faster than mine.........

edit: nicely done Tifreak8x, runs very fast. wonder if it will run faster if at the beginning use:
length(string->theta
and then for(C,1,theta
ur routine works for small text though, while mine works for large text. guess i have to go back to the drawing board  Winkwink.gif
Logged
tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 03:20:13
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #58 on: 20 January, 2006, 09:01:00 »
0

My routine can be made to work with big text, you just have to adjust some variables.

And thanks. Smileysmile.gif

I like to try to improve upon my programs, and others when I can. Cheesybiggrin.gif
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Pages: 1 2 3 [4]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.305 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.