Thread: Dialogue system
View Single Post
  #18  
Old 01-29-2010, 07:39 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
This is the format I use for my sign/dialogue system. It's maybe not as flexible, but I find it more easier to read and follow:

PHP Code:
  temp.test Sign.multi("A copy of Ninja Illustrated! Should you take it?",{
                           
"Yes",
                           
"No",
                           
"Does it have bikini ninja chicks???"
                          
}
                        );
  if (
test == "Yes"Sign.say("Thief!#bYou should be ashamed!");
  else if (
test == "No"Sign.say("Good, you're a good boy... a good boy...");
  else 
Sign.say("Maybe, you pervert!"); 
These functions can be stacked in order needed, as it won't process the next sign until the last has finished. Sorry about the formatting. I was trying to make it more readable, as in what's going on.
Reply With Quote