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
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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