Marlingaming

Speech Select

Mar 8th, 2022 (edited)
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. local tArg = {...}
  2.  
  3. local X = tArg[1]
  4. local Y = tArg[2]
  5. local Character = tArg[3]
  6. local Reaction = tArg[4]
  7. local Topic = tArg[5]
  8. local Noun = tArg[6]
  9. local Adjec = tArg[7]
  10.  
  11. local Options--Happy,Angry,Scared,Neutral
  12. local Text
  13. if Topic == "PointOut" then
  14. Options = {"thats a pretty nice @A","WHY MUST THERE BE A @A!","why is that there?(Pointing at @A)","hey its a @A"}
  15. elseif Topic == "Disc" then
  16. Options = {"hey! isnt that a @B @A?","A Pretty Useless @B @A","get that @B @A away from me!","its a @B @A"}
  17. elseif Topic == "Personal" then
  18. Options = {"thats my @A"}
  19. elseif Topic == "Character" then
  20.  
  21. elseif Topic == "Tragedy" then
  22.  
  23. end
  24.  
  25. Text = Options[Reaction]
  26. Text = (string.sub(Options[Reaction],1,string.find(Options[Reaction],"@A")-1)..Noun)..string.sub(Options[Reaction],string.find(Options[Reaction],"@A")+1,string.len(Options[Reaction]))
  27. if Adjec ~= nil then Text = string.sub(Text,1,string.find(Text,"@B")-1)..Adjec..string.sub(Text,string.find(Text,"@B")+1,string.len(Text)) end
  28. term.setCursorPos(X,Y)
  29. term.write(Text)
Add Comment
Please, Sign In to add comment