Creating a Hero Pick Duel system, Help?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Creating a Hero Pick Duel system, Help?

Post by Arabidnun »

I have AIM, i think your talking about Sev lol, But i dont prefer to have trillian, i dont have many freinds and all the freind i do have they all just use aim...most of them dont even get on b/c they arent as big a geek as i am.



So...anyone wanna help me with that varaible at the end of the integer on the 2nd strand
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4445
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Creating a Hero Pick Duel system, Help?

Post by Bartimaeus »

Arabidnun wrote:(Set HeroSavePoints[(Integer A)] = (Position of Heroes[(Integer A)])) (Create an variable point array, with size 1)

I can get to the set variable(herosavepoints(interger a)) = then this is where i get stuck

i cant find the thing for position of heros

same with the facing hero

Then....

(Unit - Move Heroes[(Integer A)] instantly to (Center of HeroDuelSpots[(Integer A)])) (Create a region variable and check mark array, and keep the red none there)


unit- move heros i cant find that in units for action...idk i just dont see it any chance you can help or even make it and add on an attachment?
Heroes is a variable, not an action. :S I believe it's a unit variable. Make it "no unit".
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Creating a Hero Pick Duel system, Help?

Post by Arabidnun »

What about unit(kill( integer a)) is that another variable?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4445
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Creating a Hero Pick Duel system, Help?

Post by Bartimaeus »

Arabidnun wrote:What about unit(kill( integer a)) is that another variable?
Where's that?
(edit) Oh, kills is the integer for seeing how many hero kills people have. Create an integer array size 1, this is kills.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Creating a Hero Pick Duel system, Help?

Post by Aero »

This is JASS section :|
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4445
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Creating a Hero Pick Duel system, Help?

Post by Bartimaeus »

Aero wrote:This is JASS section :|
No one felt like moving it. Lol
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Creating a Hero Pick Duel system, Help?

Post by Arabidnun »

Bartemius, er i have a question about one of your codes

(((Player((Integer A))) slot status) Equal to Is playing)) then do (Set Team1Leader = (Integer A)) else do (Do nothing))(Create an unit variable)

Set team1leader = integer A, er i cant find out how to do set variable team1leader = value( cant find integer A), any help?


Set Team1LeaderHero = Heroes[Team1Leader](Create an integer with initial value of 14)


And i set up Team1LeaderHero as an integer with value of 14, but i cant set it = to heroes(variable)?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4445
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Creating a Hero Pick Duel system, Help?

Post by Bartimaeus »

Arabidnun wrote:Bartemius, er i have a question about one of your codes

(((Player((Integer A))) slot status) Equal to Is playing)) then do (Set Team1Leader = (Integer A)) else do (Do nothing))(Create an unit variable)

Set team1leader = integer A, er i cant find out how to do set variable team1leader = value( cant find integer A), any help?


Set Team1LeaderHero = Heroes[Team1Leader](Create an integer with initial value of 14)


And i set up Team1LeaderHero as an integer with value of 14, but i cant set it = to heroes(variable)?
Sure, hold on.
Team1Leader is an integer value of 14, not Team1LeaderHero, that's a unit - no unit variable.
You want to set Team1LeaderHero to Heroes[Team1Leader].
Where is the part on the top? I can't find it >.>
Erm, I think that part is checking to see if the person with the most kills is still playing. But I really just don't see it with any my code...
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Creating a Hero Pick Duel system, Help?

Post by Arabidnun »

This code right here

For each (Integer A) from 1 to 6, do (If ((Kills[(Integer A)] Equal to TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set Team1Leader = (Integer A)) else do (Do nothing))(Create an unit variable)
Set Team1LeaderHero = Heroes[Team1Leader](Create an integer with initial value of 14)

Set Team1leader = integer a? how do i achieve that?

And is their a program you have that is randomly duels choosing randomly thought the players not just the highest?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4445
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Creating a Hero Pick Duel system, Help?

Post by Bartimaeus »

Arabidnun wrote:This code right here

For each (Integer A) from 1 to 6, do (If ((Kills[(Integer A)] Equal to TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set Team1Leader = (Integer A)) else do (Do nothing))(Create an unit variable)
Set Team1LeaderHero = Heroes[Team1Leader](Create an integer with initial value of 14)

Set Team1leader = integer a? how do i achieve that?

And is their a program you have that is randomly duels choosing randomly thought the players not just the highest?
Set Variable (Team1Leader) = For Loop Integer A, sorry I didn't explain that =/ It automatically shortens to integer a.