• 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.

Zinc question.

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
This may be the wrong section of the forum for it, but it seems the most intelligent and active people are here.

:


I can't find a full library for Zinc. I need to basically set a variable that is equal to lets say player red. Anyone able to help me? Thanks. I could only find a sort of manual with a few demonstrations and basic examples but no full syntax library.
 
Level 13
Joined
May 10, 2009
Messages
868
Personally, I've never used Zinc. However, according to its manual, it's as simple as this:

JASS:
//! zinc
library MyLib
{
    function onInit()
    {
        player varName = Player(0); // This declares a player variable, and it is assigning the Player Red to it.
        varName = Player(1); // This assigns Player Blue to it.
    }
}
//! endzinc
You simply don't need to use the set keyword, and must add a semi-colon ; in the end of a statement.
 
Last edited:
Level 12
Joined
Dec 2, 2016
Messages
733
Personally, I've never used Zinc. However, according to its manual, it's as simple as this:

JASS:
//! zinc
library MyLib
{
    function onInit()
    {
        player varName = Player(0); // This declares a player variable, and it is assigning the Player Red to it.
        varName = Player(1); // This assigns Player Blue to it.
    }
}
//! endzinc
You simply don't need to use the set keyword, and must add a semi-colon ; in the end of a statement.

Can you link me the manual?
 
Status
Not open for further replies.
Top