One hero for the whole game?

Rabarber

You can change this now in User CP.
Reaction score
94
Make the action for all players. Eight actions to be precise. Then use

Code:
DireWolf[Player Number of (Triggering Player)] Equal to True

and

Code:
Set DireWolf[Player Number of (Triggering Player)] = False

The unit isn't created, by the way. :rolleyes:

Could everyone stop calling me "he"?
 
O

OmgWtfBacon

Guest
Okay. Make a separate trigger that makes all the variables True to begin with

Events
Map Initialization
Condition
(None)
Action
Set Variable (DireWolf) = True


and do so for the rest of the arrays. but good job.

Wait a minute... Zero IS an array. I am using it on one of my maps right now... andit works perfectly. :banghead: :banghead: :(

If only you would have told me you were a girl.... Rab... I would have treated you differently. :p :D
 

Rabarber

You can change this now in User CP.
Reaction score
94
I bet zero doesn't work for everyone. I bet it messes up in JASS.
 
C

chienne

Guest
Hokay... 0.0.. so..

Code:
Starting Up
    Events
        Map initialization
    Conditions
    Actions
        Game - Display to (All players) for 20.00 seconds the text: There are no teams....
        Set DireWolf[9] = True

Annnddd...

By the unit isn't created, does that mean that's how the code is? Because I need it to be created o.o.
 
O

OmgWtfBacon

Guest
chienne said:
Hokay... 0.0.. so..

Code:
Starting Up
    Events
        Map initialization
    Conditions
    Actions
        Game - Display to (All players) for 20.00 seconds the text: There are no teams....
        Set DireWolf[9] = True

Annnddd...

By the unit isn't created, does that mean that's how the code is? Because I need it to be created o.o.
You set the one for the wolf to (8) didn't you? and Rab i DID say The Gui! :p
 

Rabarber

You can change this now in User CP.
Reaction score
94
That should be
Code:
For each Integer A between 1 and 9 do
      Set DireWolf[Integer A] = True
 
C

chienne

Guest
Aha.. so.. now it's..

Code:
Starting Up
    Events
        Map initialization
    Conditions
    Actions
        Game - Display to (All players) for 20.00 seconds the text: There are no teams....
        For each (Integer A) from 1 to 9, do (Set DireWolf[(Integer A)] = True)

But, in reference to Bacon, am I supposed to change it to 1-8 or leave it at 9?
 
O

OmgWtfBacon

Guest
chienne said:
Aha.. so.. now it's..

Code:
Starting Up
    Events
        Map initialization
    Conditions
    Actions
        Game - Display to (All players) for 20.00 seconds the text: There are no teams....
        For each (Integer A) from 1 to 9, do (Set DireWolf[(Integer A)] = True)

But, in reference to Bacon, am I supposed to change it to 1-8 or leave it at 9?
1-9 is fine it'll do the same thing.
 
C

chienne

Guest
Ok, so that little Trigger is done. (I'm taking this one thing at a time as to do everything right and not get confused, sorry ^-^)

Now for the Selecting Species script. And, I have a few questions..

-Since there are 5 possible species to select (and 1 to evolve into), would I be repeating the Selecting Species trigger as 4 other triggers?
-How do I do it so that since text comes up and displays what to type to choose your hero/wolf species, when you type in the command the wolf appears (since there is nothing there to begin with).
 

Rabarber

You can change this now in User CP.
Reaction score
94
Repeat it five times. You would have to do one variable (with nine arrays as well) for each race.

And check out the "Floating Text" action category. :rolleyes:
 
O

OmgWtfBacon

Guest
chienne said:
Ok, so that little Trigger is done. (I'm taking this one thing at a time as to do everything right and not get confused, sorry ^-^)

Now for the Selecting Species script. And, I have a few questions..

-Since there are 5 possible species to select (and 1 to evolve into), would I be repeating the Selecting Species trigger as 4 other triggers?
-How do I do it so that since text comes up and displays what to type to choose your hero/wolf species, when you type in the command the wolf appears (since there is nothing there to begin with).
For your first question: Yes, you would. Just copy and paste that trigger and use it for your next unit.
For your second question: You had it right to begin with. it doesn't matter what the game says its what the Players type. The game has nothing todo with the trigger.
::Edit::
Yeah Rab I'd agree with the floating text thing too.
 
C

chienne

Guest
Ok :) Here's How the Selecting Species is turning out..

Code:
Selecting Species
    Events
        Player - Player 1 (Red) types a chat message containing -dire as An exact match
    Conditions
        DireWolf[(Player number of (Triggering player))] Equal to True
    Actions
        Unit - Create 1 Dire Wolf for (Triggering player) at (Player 1 (Red) start location) facing 315.00 degrees
        Set DireWolf[(Player number of (Triggering player))] = False

Or should it be..

Code:
Selecting Species
    Events
        Player - Player 1 (Red) types a chat message containing -dire as An exact match
    Conditions
        DireWolf[(Player number of (Triggering player))] Equal to True
    Actions
        Unit - Create 1 Dire Wolf for (Triggering player) at (Player 1 (Red) start location) facing 315.00 degrees
        Set DireWolf[(Player number of (Triggering player))] = False
 
O

OmgWtfBacon

Guest
DireWolf[(Player number of (Triggering player))] Equal to True
I don;t get this. why not just put DireWolf Equal to True? Can you explain Rabarber? :(
 

Rabarber

You can change this now in User CP.
Reaction score
94
That works for all players. The thing would be that if one player picked the Dire Wolf, no one else would be able to have it. :rolleyes:
 
C

chienne

Guest
Hmmm... ok here..

Code:
Selecting Species
    Events
        Player - Player 1 (Red) types a chat message containing -dire as An exact match
    Conditions
        DireWolf[(Player number of (Triggering player))] Equal to True
    Actions
        Unit - Create 1 Dire Wolf for (Triggering player) at ((Triggering player) start location) facing 315.00 degrees
        Set DireWolf[(Player number of (Triggering player))] = False

Under events, should I repeat..

Code:
Player - Player 1 (Red) types a chat message containing -dire as An exact

Except with player 2, player 3, player 4, etc etc?
 
O

OmgWtfBacon

Guest
chienne said:
Hmmm... ok here..

Code:
Selecting Species
    Events
        Player - Player 1 (Red) types a chat message containing -dire as An exact match
    Conditions
        DireWolf[(Player number of (Triggering player))] Equal to True
    Actions
        Unit - Create 1 Dire Wolf for (Triggering player) at ((Triggering player) start location) facing 315.00 degrees
        Set DireWolf[(Player number of (Triggering player))] = False

Under events, should I repeat..

Code:
Player - Player 1 (Red) types a chat message containing -dire as An exact

Except with player 2, player 3, player 4, etc etc?
Yup
 
C

chienne

Guest
Ahhhaaa. so I just have players 1-8 in events, and the likes, and copy that trigger and rename some things for the different species. And create separate variables for the separate species?

As for the Starting Up thing, under actions, should I copy..

Code:
For each (Integer A) from 1 to 9, do (Set DireWolf[(Integer A)] = True)

And put it under actions 4 more times except with the variables for the other species, like this..

Code:
Starting Up
    Events
        Map initialization
    Conditions
    Actions
        Game - Display to (All players) for 20.00 seconds the text: There are no teams....
        For each (Integer A) from 1 to 9, do (Set DireWolf[(Integer A)] = True)
        For each (Integer A) from 1 to 9, do (Set TimberWolf[(Integer A)] = True)
        For each (Integer A) from 1 to 9, do (Set SnowWolf[(Integer A)] = True)
        For each (Integer A) from 1 to 9, do (Set TundraWolf[(Integer A)] = True)
        For each (Integer A) from 1 to 9, do (Set Whelp[(Integer A)] = True)
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top