Create your own Interactive Fiction

ADRIFT - Interactive Fiction  
Home   |   News ADRIFT News RSS   |   Screenshots   |   Download   |   Games ADRIFT Reviews RSS   |   Forum   |   Help   |   Links
Welcome Guest Register | Login
Popular Games
Skybreak v. 1.4
The Fortress of Fear
The Lost Children
Skybreak v 1.2
The PK Girl
The Euripides Enigma
Lost Coastlines
the virtual human
Magnetic Moon
Starship Quest
 
Latest Forum Posts
The Book of Jax - The Adventures of Alaric Blackmoon # 10
HAPPY BIRTHDAY DazaKiwi
HAPPY BIRTHDAY ralphmerridew
An' anuvver fing....
Why don't my folders stay where I put them?
Results of The 2023 IFDB Awards are in!
Setting nickname / displaying unique text based on character name
Some excellent loot
ADRIFT 5's rendering API?
Getting Adrift 4 to ignore "and"
 
Latest Reviews
Classic Adventure
Private Eye
Roozden's Color Code Module
Wumpus Hunt
Lost Coastlines
The Lost Labyrinth of Lazaitch
October 31st (Post comp.)
The Euripides Enigma
AI
Hint System Library - Release 1

Make a donation

Cursor  Double index arrays

Issue Type: Status: Priority: Date Submitted: Votes:
Enhancement Open Medium Thu 16th May 2013 3 votes Vote Up Vote Down
 
Found in version: Last Updated: Completed in version: Date Completed: Track Changes:
5.0.30.1 Fri 17th May 2013 Log In
 
Thu 16th May 2013 08:42
Right now you only have single arrays, but double arrays would make things a lot more flexible. Especially if you'd like to write customized different responses. (Using text arrays).

Say the first index of the array would keep track of how far you are in the quest, or, the mood of the character you are talking with. The second index would result in different responses.

An example for a double index text array.

AskAboutJob_TextArray[1][1] "None of your business."
AskAboutJob_TextArray[1][2] "What it's to you?"
AskAboutJob_TextArray[1][3] "I'm not discussing that."
AskAboutJob_TextArray[2][1] "Well, I'm jobless."
AskAboutJob_TextArray[2][2] "What job, I have none."
AskAboutJob_TextArray[2][3] "I wish I had one."
AskAboutJob_TextArray[3][1] "I'm glad you asked! You see, I have no job. Do you know of a good job for me?"
AskAboutJob_TextArray[3][2] "Finally someone who cares! I am jobless since the great famine."
AskAboutJob_TextArray[3][3] "Well pal, I lost my job last year with the big famine and all."
 
saabieFri 17th May 2013 06:06
The workaround for this is just to calculate the indexes yourself.
ie. AskAboutJob_TextArray[ QuestNum*3+Mood ]
(Note that QuestNum starts at 0 and Mood starts at 1)
© 2013 Campbell Wild. All rights reserved. | Contact the Webmaster