Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfset WordRepository = StructNew()>
- <cfset WordRepository.FirstNames = 'Kurt, James, Steven, Mark, John, Jamie, Adam, Rocky, Seth, Nigel, Kristian, Daniel, Patrick, Chris, Jermaine, Tyrone, Micheal, Joshua, Peter, Luke, Ryan, Kevin, Mohammed, Sairab'>
- <cfset WordRepository.SecondNames = 'Van Damm, Russel, Swartznegger, Stallone, Davidson, Balboa, Daniels, O''Grady, Platts, Tosney, Crumbie, Avezedo, Camden, Slater, Owen, Simmonds, Wilkinson, Khan, Shah, Ali, Kilgallon, Whalley'>
- <cfset WordRepository.Title = 'Sir, Agent, Don, Dr, Master'>
- <cfset WordRepository.Task = 'Obliterate, Defeat, Destroy, Kill, Crush, Cannibalize, seduce, Lambast, Teabag'>
- <cfset WordRepository.Prize = 'The Women, Our Women, The Gold, The Treasure, The City, The Children, The Swag, Our Medals, Our Future, The Money, Our Money, All The Pies, all our base, '>
- <cfset StorySelect = RandRange(1,4)>
- <cfset HeroName = ListGetAt(WordRepository.FirstNames, RandRange(1, ListLen(WordRepository.FirstNames))) & ' ' & ListGetAt(WordRepository.SecondNames, RandRange(1, ListLen(WordRepository.SecondNames)))>
- <cfset VillainName = ListGetAt(WordRepository.FirstNames, RandRange(1, ListLen(WordRepository.FirstNames))) & ' ' & ListGetAt(WordRepository.SecondNames, RandRange(1, ListLen(WordRepository.SecondNames)))>
- <cfset HeroTitle = ListGetAt(WordRepository.Title, RandRange(1, ListLen(WordRepository.Title)))>
- <cfset HeroTask = ListGetAt(WordRepository.Task, RandRange(1, ListLen(WordRepository.Task)))>
- <cfset HeroPrize = ListGetAt(WordRepository.Prize, RandRange(1, ListLen(WordRepository.Prize)))>
- <cfif HeroName EQ VillainName>
- <cflocation url="fridaypuzzler.cfm">
- </cfif>
- <cfswitch expression="#StorySelect#">
- <cfcase value="1">
- <cfset storyoutput = HeroTitle & ' ' & HeroName & ' it has recently come to our attention that ' & VillainName & ' has been stealing ' & HeroPrize & '. You must ' & HeroTask & VillainName & ' to ensure the safety of' & HeroPrize & '. We are all counting on you ' & HeroName & ', do not let us down!'>
- </cfcase>
- <cfcase value="2">
- <cfset storyoutput = 'There has been a raid on ' & HeroPrize & ' by the dastardly ' & VillainName & '. The people have chosen you, ' & HeroTitle & ' ' & HeroName & ' as their champion. ' & HeroTask & ' all comers on the road to ' & HeroTask & ' ' & VillainName & '!'>
- </cfcase>
- <cfcase value="3">
- <cfset storyoutput = HeroPrize & ' is continually being threatened by ' & VillainName & ' and his gang of hoodlums. The time has come for ' & HeroTitle & ' ' & HeroName & ' to once again ' & HeroTask & ' ' & VillainName & ' and ' & HeroPrize & ' will finally be safe.'>
- </cfcase>
- <cfcase value="4">
- <cfset storyoutput = 'Stop ' & VillainName & ' before it is too late and he ' & HeroTask & ' you. ' & HeroName & ' , it is vital for ' & HeroPrize & ' that you do not fail!'>
- </cfcase>
- </cfswitch>
- <cfoutput>#storyoutput#</cfoutput>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement