-godly all command on teve map
Moderator: Cheaters
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: -godly all command on teve map
and who the heck is "GetTriggerUnit()" is there a unit specified? O.o
-
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
Re: -godly all command on teve map
true, I missed that part. the GetTriggerUnit would have worked if it was a unit-event of any-kind. What you are looking for is probably a GetEnumUnit() which is the unit you picked, although for that to work there is a need a in a loop IIRC...
-
- Senior Member
- Posts: 199
- Joined: April 19th, 2009, 12:46 pm
Re: -godly all command on teve map
Could you model what JJ did for his CP?
Spoiler:
-
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
Re: -godly all command on teve map
if I remember correctly, it takes the group of units you chose (like if you drag a box around 12 units...)
And it uses the command for the First unit of the group, and after it is done, it loops again and does the same to the 2nd, and again to the 3rd etc... So if you get 12 heroes picked and write -agi 1000, they will all have 1000 agility.
And it uses the command for the First unit of the group, and after it is done, it loops again and does the same to the 2nd, and again to the 3rd etc... So if you get 12 heroes picked and write -agi 1000, they will all have 1000 agility.
-
- Senior Member
- Posts: 199
- Joined: April 19th, 2009, 12:46 pm
Re: -godly all command on teve map
Was the code I posted correct? Cause I just tried it in-game and still would not spawn :-/
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: -godly all command on teve map
no o.o you didn't define the group...you just created it...
like the repick system, just use the hero var in the save system
or...even easier, just spawn it on the selected hero?
like the repick system, just use the hero var in the save system
or...even easier, just spawn it on the selected hero?
-
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
-
- Senior Member
- Posts: 199
- Joined: April 19th, 2009, 12:46 pm
Re: -godly all command on teve map
Wonderful, it worked perfectly haxorico, your 100% pure genius. Thank you everyone who posted here for their feedback and help.
EDIT:Hmm, moving the part that goes into function main into a different call (cause there were some problems with it being in function main) made my -repick command to stop working. I figured it was just string overwrite, so I changed the strings for my godly command, but that didnt seem to help at all, any ideas?
EDIT:Hmm, moving the part that goes into function main into a different call (cause there were some problems with it being in function main) made my -repick command to stop working. I figured it was just string overwrite, so I changed the strings for my godly command, but that didnt seem to help at all, any ideas?
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: -godly all command on teve map
this would be so much easier if you gave us the map but.......
make sure it was actually called?
maybe put a DisplayTextToPlayer() to see if it happened
if not, make it happen...
make sure variable/function names are correct
make sure you actually selected the unit before typing w.e you typed
if you used substrings, make sure end/start # are right
make sure it was actually called?
maybe put a DisplayTextToPlayer() to see if it happened
if not, make it happen...
make sure variable/function names are correct
make sure you actually selected the unit before typing w.e you typed
if you used substrings, make sure end/start # are right
-
- Senior Member
- Posts: 199
- Joined: April 19th, 2009, 12:46 pm
Re: -godly all command on teve map
EDIT: Nevermind, I fixed it, thanks for the ideas nature.
Last edited by Durge on December 1st, 2011, 3:46 am, edited 1 time in total.