ID:177363
 
I'm kind of stumped at this. What I want if for a player to be able to challenge another player and have them warped to either /turf/challenger or /turf/defender (challenger for the user, defender for the target). However, I don't know how to make the defender have a choice in the matter. It should also stop the player from challenging if the challenger and defender global variables aren't null. I need this by October 5 at 7:00 A.M. EST.
I still need help...
In response to Drafonis
And i need a new car...
Be patient!
Ok, I dont have time to write out something in detail. But I can point you towards solutions.
First, Im guessing that you know how to teleport the players to the turfs (challanger.loc = locate(/turf/challanger) defender.loc = locate(/turf/defender))

The next thing you want it to have a choice. Im guessing Accept/Decline.
One way of doing this is using a switch() and an alert().

The variables arent null thing is easy. if(!global.variablename)
In response to Dog Man
Dog Man wrote:
Ok, I dont have time to write out something in detail. But I can point you towards solutions.
First, Im guessing that you know how to teleport the players to the turfs (challanger.loc = locate(/turf/challanger) defender.loc = locate(/turf/defender))

The next thing you want it to have a choice. Im guessing Accept/Decline.
One way of doing this is using a switch() and an alert().

The variables arent null thing is easy. if(!global.variablename)

How would you make it ask the defender? I'm handling him as "M".
In response to Drafonis
alert(M,"Will you run or fight?","Run or Fight","Run","Fight")
That will ask M if it wants to fight or run.
Check the Help On... Index for more info on Alert().
-DogMan