1. The topic title must have a (GUI) or (JASS) in it. If you don't want triggering, then you don't need to, but if you do, failing to regard this will result in a trash. If you want either, put (EITHER).
2. If you want us to make a spell or something, please give us accurate descriptions of what you want. We can't work blindly. No, "remake so-and-so from Anime Fight plzzzzzzzzzzzzz". Details, people.
3. Try to use coherent English, because if you don't, whatever you want us to help with may be messed up, and it would be better to simply avoid wasting your time, as well as our own.
1) We don't need [JASS] or [GUI] in the title. I mean, just look at all the other threads here.
2) Please don't quote bigass posts without throwing them inside of spoilers.
3) Please put big blocks of code in spoilers.
//===========================================================================
//===========================================================================
//Trigger:End Round
//===========================================================================
function Trig_End_Round_Conditions takes nothing returns boolean
if(not(udg_boolean01==true))then
return false
endif
return true
endfunction
function Trig_End_Round_Func008C takes nothing returns boolean
if(not(udg_integer01<40))then
return false
endif
return true
endfunction
function Trig_End_Round_Actions takes nothing returns nothing
local integer udg_randInt = 0
set udg_boolean01=false
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=11
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AdjustPlayerStateBJ((80+(100*udg_integer01)),ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_GOLD)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AdjustPlayerStateBJ((150+(150*udg_integer01)),Player(0),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ((100+(100*udg_integer01)),Player(7),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ((100+(100*udg_integer01)),Player(8),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ((100+(100*udg_integer01)),Player(9),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ((100+(100*udg_integer01)),Player(10),PLAYER_STATE_RESOURCE_GOLD)
set bj_forLoopAIndex=GetRandomInt(0,10)
set bj_forLoopAIndexEnd=200+100*udg_integer01
if udg_integer01 >= 6 then
set bj_forLoopAIndexEnd=2000+1000*(udg_integer01-7)
endif
if udg_integer01 >= 10 then
set bj_forLoopAIndexEnd=10000+1000*(udg_integer01-10)
endif
if udg_integer01 >= 20 then
set bj_forLoopAIndexEnd=70000+10000*(udg_integer01-20)
endif
call DisplayTextToForce(GetPlayersAll(),(udg_strings01[GetConvertedPlayerId(Player(bj_forLoopAIndex))]+(GetPlayerName(Player(bj_forLoopAIndex))+" is a Lucky Man |cffffcc00 |r")))
call DisplayTextToForce(GetPlayersAll(),(udg_strings01[GetConvertedPlayerId(Player(bj_forLoopAIndex))]+(GetPlayerName(Player(bj_forLoopAIndex))+"|cffffcc00 : + "+I2S(bj_forLoopAIndexEnd)+" when End Round |r")))
call AdjustPlayerStateBJ((bj_forLoopAIndexEnd),Player(bj_forLoopAIndex),PLAYER_STATE_RESOURCE_GOLD)
call PolledWait( 1.5 )
call DisplayTextToForce(GetPlayersAll(),(udg_strings01[GetConvertedPlayerId(Player(bj_forLoopAIndex))]+(GetPlayerName(Player(bj_forLoopAIndex))+"|cffffcc00 : + "+I2S(bj_forLoopAIndexEnd)+" when End Round |r")))
call TriggerSleepAction(8.00)
if udg_integer01==6 then
set udg_randInt = GetRandomInt(0,11) // I dunno if it's inclusive on upper or lower bound, you might have to change this. Also, this assumes you have 12 players as human, so fixing required on that too if applicable
call AdjustPlayerStateBJ((1200),Player(udg_randInt),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTextToPlayer(GetLocalPlayer(),0,0,GetPlayerName(Player(udg_randInt)) + "'s gold increased by 1200.")
endif
if(Trig_End_Round_Func008C())then
call StartTimerBJ(udg_timer01,false,10.00)
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())
else
call TriggerExecute(udg_trigger42)
endif
endfunction
Read my comment, fix the functions if I messed up, but that's the general thing that would happen. What happens is it picks a random number 0-11 (inclusive, for each player ID) and gives gold to that player, and also informs everyone that the player was given 1200 gold.
Post again if you have problems with this.
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that
So, lemme get this straight...
1- Ok, so its not right to tell others to follow the rules... because most people dont ?
2- Ok, it was stupid to not put it in spoiler.
3- How is 9 lines a "big code"
owner123 wrote:So, lemme get this straight...
1- Ok, so its not right to tell others to follow the rules... because most people dont ?
2- Ok, it was stupid to not put it in spoiler.
3- How is 9 lines a "big code"
1- I'm pretty sure this goes under deprotecting/cheating
2- Ok..
3- 9 lines isnt big, but in a code it is
3.2 - your quote should've been in spoiler too, it was huge.