ID:809485
 
(See the best response by Keeth.)
Code:


Problem description:Well, can anyone tell me how to make a swtich tournament verbs which changes the tournament type in game??
i have 4 types of tournament (Guild,Junior, Baba and world)

Best response
Considering the amount of information you have provided us, I have managed to write a simple snippet that MIGHT be able to change your tournament type in-game.

proc/changeTournamentType(type)
game.tournamentType = type

Now, if you want to provide a little bit more information on what a tournament is, what it does, how it's implemented, and what changing it requires, I might be able to give you an example that actually is relevant to your world.
var/tournamentturn=1
proc/DecideTournament()
if(tournamentturn==1)
TournamentType1()
if(tournamentturn==2)
TournamentType2()
if(tournamentturn==3)
TournamentType3()
if(tournamentturn==4)
TournamentType4()
tournamentturn=0
tournamentturn++


Is an example implamentation of what you requested, I will not help you tune it into your tournament system.
thnx buddy :)