• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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