You must remember to make arrays 1 size larger than number of players because they start as 0.
No need for this. Blizz has done it in the GUI. If you declare an array with Size 5 in GUI, in Script it will have Size 6...
Thats why you wont have problems with indexes starting at 1.
I bit the bullet and just hardcoded my characters into an array of strings =P So I just do a lookup using that array.
I'm currently working on a Library containing (amog other things) Functions for Conversion between a single Character String and Integer...
But it seems I was a little bit too slow. :(
EnableUpgradeAbilityEventsUnit-AnyUnitdiesLocalVariablesConditions(Ownerof(Triggeringunit))==10(Unittypeof(Triggeringunit))==OmegaliskActionsUI-Display"Your Units are now Upgradable!"for(Allplayers)toDirectiveareaTechTree-SetEnableResearchupgradelevelto1forplayer1General-Wait5.0GameTimesecondsUI-ClearDirectiveMessagesfor(Allplayers)
Err, what goes into the Ability and Ability Command tabs..?
Not in the Unit Settings, but in the Research Ability ("Evolution Chamber - Research (Evolution Chamber)") .
There you have to Double-Click on the right side of window in the Ability Tab on your Command.
And then Select under "Requirement" your Requirement ("research Is Enabled").
Select on the left half of the Window very on the top (under the Buttons) from the List "Data Types" (at the Moment "Upgrades") the Item "Requirements"
Add new Object (new Requirement) and select it
Then add on the right side down under "Requirement" to the "Show" node a new requirement Node of Type "Count Upgrade" [like in Point 5 before]
Select in the Alias List your created Upgrade ("Enable Research")
Set State to "Completed"
Go to your Research Ability
Select on thr right Side the Ability Tab
Double-click on the Research Command wich should be enabled with the Kill
Select in the List under "Info - Button - Requirement" your created Requirement ("Research Is enabled")
Done, now the Research Command is only available, if the "Enable Research" Upgrade is researched...
nvm that i've copied it from above (was too lazy to type it again...)
Attack Speed is not set for a unit, but for the Weapon the units uses. So you have to change the Weapon.
I don'k know if there's a Trigger Action to do this...
0
Hey everybody out there!
I've once again a problem. This time with custom Function Grammar Texts:
How can I store them in a Library?
E.g. I have a code like this:
Now how can I export this custim Grammar text with my Library?
Thanks for every Help
Then
0
WaypointSystem
I'd like to introduce my WaypointSystem Library:
http://www.sc2mapster.com/assets/waypointsystem/
Like said on the Asset Page, it's a System for controling of NPC units moving around using a Network of Waypoints.
Current Version: 0.5
Short Summary
Currently Supported
Future Tasks
Known Issues
Demo
Here's a demo of the System in Action (with some of the problems I still have ;) )
I'm open for Ideas ans Bug Reports so just post them below...
Cheers
Then
0
There is a way to show a unit for the owning player.
But this doas only work if the players haven't shared vision.
For this, you have to set the Buried and the Cloak Flags.
Then your Unit is cloaked without the blue cloak glow...
Cheers Then
0
No need for this. Blizz has done it in the GUI. If you declare an array with Size 5 in GUI, in Script it will have Size 6...
Thats why you wont have problems with indexes starting at 1.
Cheers Then
0
Cheers Then
0
I'm currently working on a Library containing (amog other things) Functions for Conversion between a single Character String and Integer...
But it seems I was a little bit too slow. :(
0
@Mesden: Go
Jepp.
Command Type: Ability Command
Requirements: (None)
Ability: Evolution Chamber - Research (Evolution Chamber)
Ability Command: Evolve Missile Attack Level 1
This will give your unit the Command Button to research Attack...
Cheers Then
0
@Mesden: Go
I ment it must look like in the attachment...
0
Trigger is as I written above:
0
@Mesden: Go
Sorry, made a mistake. In the Requirement "Research is Enabled" the requirement node must be under "Use" and not under "Show"...
0
Not in the Unit Settings, but in the Research Ability ("Evolution Chamber - Research (Evolution Chamber)") .
There you have to Double-Click on the right side of window in the Ability Tab on your Command. And then Select under "Requirement" your Requirement ("research Is Enabled").
Cheers Then
Edit:
Ok, no. Wait...
0
@Mesden: Go
Because there is already a Node...
Select it, set Alias to "Enable Research" and state to "Completed"
0
@Mesden: Go
ahh, ok. one moment...
Edit:
nvm that i've copied it from above (was too lazy to type it again...)
Cheers Then
0
@dre__: Go
Edit:
Molsterr was a bit faster... :)
0
@Nite01: Go
Attack Speed is not set for a unit, but for the Weapon the units uses. So you have to change the Weapon.
I don'k know if there's a Trigger Action to do this...
Cheers Then