The Daily Click ::. Forums ::. Klik Coding Help ::. RPG Text

Post Reply  Post Oekaki 

Posted By Message


5th June, 2008 at 06:29:28 -

Any way to write all your text in a file, then have it load certain sentences when you approach a character?

Say I have a text file like this:

1. Sup dude?
2. Hey!
3. Hi there.

1. Piss off!
2. Go away!
3. ......

And when the character collides with Keenan the game chooses one of the lines in Keenan's character word bank.

Basically I plan on having a huge amount of characters and I just wanted to write out everything in one spot.

Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.


What a goofball


KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
5th June, 2008 at 09:51:36 -

Lists may achieve that function, but I'm not sure how that would pan out... plus everyone here seems to have something against lists... INI's may also be usable, but that would be a mess... I'd say lists.




Mascot Maniac


Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
5th June, 2008 at 10:45:41 -

There is an example on Clickteam's website using the text blitter object and ini's



Dedicated klik scientist


Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
5th June, 2008 at 14:10:40 -
If you've got TGF, you can look at how I did it with gridquest. It processed an INI file to allow for one of X random strings chosen when talking to an NPC, and then a linear dialogue tree from that.

Gridquest V2.00 is out!!



VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
5th June, 2008 at 15:46:14 -

could you not do it in a similar manner to a "choose your own adventure" book. you know, the ones where you have a passage of text then you have some options available to you. The way i would do it is to assign each character an ini file with the group [speech] in. in here have all your phrases as seperate items. you can then write your code to retrieve each item based on a chracters alterable value.


Post Reply



Worth A Click