Duel System Help Needed

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

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

Re: Duel System Help Needed

Post by Arabidnun »

Xantan the Gui didnt work, i did the intvar = random 1-5, and intvar1 = random 6-10

unit group- pick every units ect..player(this is a variable with array 1)(intvar) and do action move instantly to region...and it doesnt work?

Edit:
Ok, i have some questions if anyone can help me...
Last edited by GeorgeMots on December 18th, 2007, 12:46 pm, edited 1 time in total.
Reason: dont double post, use the Edit button
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Duel System Help Needed

Post by Bartimaeus »

Arabidnun wrote:Ok, i have some questions if anyone can help me...
I've been trying to help you, but you keep refusing to do what I tell you to do =/
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Duel System Help Needed

Post by Xantan »

Arabidnun wrote:Xantan the Gui didnt work, i did the intvar = random 1-5, and intvar1 = random 6-10

unit group- pick every units ect..player(this is a variable with array 1)(intvar) and do action move instantly to region...and it doesnt work?
ah yeah, use picked unit... not triggering.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Duel System Help Needed

Post by Arabidnun »

The triggers still not working....

I made a new map, just imported 5 heros, 1 for each color expect brown and darkgreen...Then:

I set up a duel timer, goes off in 5 seconds

You trigger set intvar, and i even switched triggerd hero to picked hero, and it still doesnt work...what did i do wrong?

Edit: wait, dont i have to set player variable = something?
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Duel System Help Needed

Post by Xantan »

gah, I'm so tired of trying to help you for some reason, hopefully this resolves this...


I am going to assume everyone gets 1 hero each.

With this being said, the duel timer will be every 5mins.

I will do the triggers, and explain them, then offer you the map yourself to steal them from.


K.

Image1 = map init, a bit after, it picks all heros owned by people with player numbers less then 13 and owned by a user
http://img140.imageshack.us/img140/7885 ... 9e1gj7.jpg

Image2= every 5 minutes it does a duel, pauses all units, moves units (may not work, if so let me know), does little flashy stuff, and then unpauses units.
http://img177.imageshack.us/img177/7118 ... 65fkh9.jpg

and heres the map to look at the triggers in the world editor so you don't have to do them yourself.
http://www.mediafire.com/?deg4mfdz2dt


As I said, there could be one issue, if it is indeed an issue, let me know... otherwise, just work with what I gave you if you can...

Note: you will need to change 'center of playable map area' to wherever your duel area is or something... lol
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Duel System Help Needed

Post by Arabidnun »

Xantan, your duel works perfectly, i just need one more thing,


I will even give you the map so you can decide how much of an idiot i am lol...


My problem in my game:
- Any chance is there a way to check for player slot control comparison withing the integers so we dont have a comp vs comp duel, or a empty duel?

This was a bad Link, lemme remake and get you a new one
unprotect_(10)S.O.T.B v0.40c4.w3x
You do not have the required permissions to view the files attached to this post.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Duel System Help Needed

Post by Xantan »

I don't really want to do the map for you... so... let me just alter that small check for you and re-post that test map...

Edit:
Will edit with a download link soon...

Edit2:
http://img299.imageshack.us/img299/9333 ... 4cdhi6.jpg
Added the first line of gui code to the second trigger... should remove all non player units from the group, therefore it won't pick them... and as it updates each time before the duel, it may work fine now...

heres the second version of that testmap.
http://www.mediafire.com/?fbmfwtmcxte
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Duel System Help Needed

Post by Arabidnun »

Xantan, i wanted to know if i can add a line of code after the pick unit and sent to region code


i tried

-Unit -set life of maching unit to 100%
- unit - set life of picked unit to 100%

both of those after your code to pick unit and move to region and it doesnt work

Any advice? am i chooing the wrong code?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Duel System Help Needed

Post by Bartimaeus »

Arabidnun wrote:Xantan, i wanted to know if i can add a line of code after the pick unit and sent to region code


i tried

-Unit -set life of maching unit to 100%
- unit - set life of picked unit to 100%

both of those after your code to pick unit and move to region and it doesnt work

Any advice? am i chooing the wrong code?
A unit enters (whatever region you picked)
Entering unit is a hero
Set entering unit life to 100%
Turn off (this trigger)
Wait 60 seconds
Turn on (this trigger)

Do that for both regions.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Duel System Help Needed

Post by Arabidnun »

Ty, I will try it