• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Inquiry] Project 2, uncertain.

Status
Not open for further replies.
Level 7
Joined
Sep 9, 2007
Messages
253
There are a few things I'm uncertain about in project 2.

1. Create a unit array called units and initialize it to the following
we were told in lesson 14 Arrays that you could not initialise arrays with a value. They had to be set later. Nestharus actually already told me just to use the set keyword to set the values manually; so I thought I'd share this one in case others are confused.

2. You are only allowed to use the value 5 *one* time, and you may only use the value 5
Well I'm not sure what counts as using the value 5. I have used the number 5 lots of times or the index of 5 lots of times as well but I have only used the value of 5 as an integer one time. Is that correct?

3. [ ] may be a value
Can I use [ as a value and ] as another value? or does it have to be only 1 value? Perhaps some clarification on our limitations on how we can use colour escapes. also i dunno why we need to use the value "Is A".

4. Do the displayed arrows and unit names have to line up neatly?
As you said \t doesn't work properly and the only other option is trial and error through use of individual space characters, seems clunky.
Thanks.
 
Last edited:
Well I'm not sure what counts as using the value 5. I have used the number 5 lots of times or the index of 5 lots of times as well but I have only used the value of 5 as an integer one time. Is that correct?

As the directions state, you may use direct values for SetUnitUserData and setting the array. In those cases, the use of 5 doesn't count.

Can I use [ as a value and ] as another value? or does it have to be only 1 value? Perhaps some clarification on our limitations on how we can use colour escapes. also i dunno why we need to use the value "Is A".

You may use "[" and "]" etc is what that meant

As you said \t doesn't work properly and the only other option is trial and error through use of individual space characters, seems clunky.
Thanks.

Yes, they must line up neatly

You need to display it just like it shows

edit
You may use direct values when setting the array indexes to the created units

You may use direct values for any line that uses SetUnitUserData

These direct value uses will not count toward your one time use of 5.

You may use any string values other than those that are numbers or those that are the names of units.

Hopefully this makes things clear : ).
 
Last edited:
Status
Not open for further replies.
Top