ID:162290
 
uhh not making a game per se more of an application

kinda like truth or dare for byond.
wonder how do i set a verb so that i use and it puts out like this



player does (random phrase from list) to (random phrase)
or
player does (random thing) on (random) to (random)

just so it says in chat?

no graphics for this
Well if you can put your random phrase pickers in separate areas then the outlook would be...

world << "player does [Action] to (Person)


That outputs the comment to the whole world. Now for the action and person selection, I'll leave that coding to you but give you the hint that random numbers and if statements are the easiest way to do it. Long, but easy.
In response to Jholder84
Jholder84 wrote:
Now for the action and person selection, I'll leave that coding to you but give you the hint that random numbers and if statements are the easiest way to do it. Long, but easy.

You only say that because you haven't seen an easier way. The pick() proc was made for this. =)

var/list/actions=list("slaps", "runs into", "falls over on", "falls over again on")

mob/verb/Action(mob/M)
world << "[src] [pick(actions)] [M]."
In response to YMIHere
You know, the funny thing is that I had just read about the pick command right before I posted that. Somehow I didn't even think of it. You're absolutely right. Pick will be much easier.