View Single Post
Old 08-30-2011, 05:45 AM   #4
Matarael
User
 
Matarael's Avatar
 
Join Date: Oct 2006
Posts: 260

Submissions (2)

Matarael will become famous soon enough (49)Matarael will become famous soon enough (49)

Default

Thanks guys, I managed to circumcise the first problem by first renaming my own global var and then referring to that for the actual trigger. It seems to be working...

And as for the second question, that snippet worked, I only want to register 1 unit per player anyway (which is what the script allows anyway).

I do have another question in this subject, I want to add a value to a player's integer for when he successfully assists, like I have done for kills/deaths. I guess I should insert a code somewhere in the script for when the " assister[*] != null " but it won't take/register the input. Perhaps it's because I'm a JASS newbie and I might have coded it wrong...
Here's what I wrote:
Collapse JASS:
            set udg_AssistCount[GetConvertedPlayerId(assister[1])] = ( udg_AssistCount[GetConvertedPlayerId(assister[1])] + 1 )

As you can see I'm still thinking in GUI and that might've been the problem?
Matarael is offline   Reply With Quote