![]() |
Read from file....
-=Josey=-
It would be nice to have a function that would read text from a file (not like an npc). Something like: NPC Code: It would be nice to have a function like this. Almost every programming engine has one. Like VB's: NPC Code: This would be really handy. Just a suggestion though. |
Re: Read from file....
Quote:
NPC Code: |
yap
and IT would be nice if we could use "resourcestring" like the translations that Stefan made.
|
-=Josey=-
Yay! I've been thinking about that for a few weeks now, finally decided to post it. It'll be great for some new NPCs. |
Quote:
|
Wouldn't using a txt file for a sign be as laggy as putnpc?
|
I think all signs should use pictographs, Mario Style, to instantly convey the information in all languages.
Barring that (hee hee), add a number to each sign indicating language. Default = Server language (if there is no language number), otherwise like 0=English, 1=French, 2=German, 3=Spanish, 4=Japanese (wow, that'd be hard...), etc. Then when making your levels, the Sign Editor defaults to your language, if you have someone to add the signs in other languages they can add Sign1-French: "Voulez-vous le nachos, dammit?" or whatever. Touching a sign brings up the sign in your language. If it doesn't have an entry in your language, it brings up the sign in the server's default language. Say would act just like touching a sign, say2 would only work for the server default language, say3 language,text; would override it (if you encounter say3 and the language matches, skip the next say2 if it follows immediately/only seperated by other say3s) Virtually useless on Classic though - I'd have to have someone redo every sign in every level...'cuz I sure ain't doin' it...maybe after I retire...could be good on multilingual servers though. |
Or using like Delphi for ALL the strings,integers,flags,arrays....
if (playerenters){this.flag.LoadFromFile('\texts\a.tx t');} or setstring flag,LoadFromFile('name.txt'); and to save: flag.SaveToFile('name.txt'); Graal uses ShortStrings, so the txt file cant be bigger than 256bytes |
All times are GMT +2. The time now is 10:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.