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

2 Questions in 1 Thread isn't this economic?

Status
Not open for further replies.
Level 4
Joined
Aug 18, 2008
Messages
103
Hi folks :)

I had 2 questions concerning World Editor...I know..stop it..I know...my knowledge is very low at World Editor..yeah..indeed..I agree...your right..ENOUGH!:)

I'll stop bipping around...here are my 2 Q:

1-I would like to know how I make a hero start with an ability...I explain myself...I want that my hero starts with endurance aura level 1 without that the player has to click on the red cross and put the ability...I think its possible..I already seen it in a few maps..

2-I'm making a race map and wanted to put a timer at start so that people know how much time they put to complete the race...is that possible?

Please,please if you have the answer say it step by step because I ain't familiar with World Editor yet:)

Cheers!!
 
Level 11
Joined
Jun 28, 2008
Messages
2,365
1st: Simmple. First make sure that hero has endurance aura. I hope you know how to do that. Then take that hero and set him on the map. Doubleklicking on him will open a window. In it you can change hero lvl, basic hp and mana, add items droped on death, and in hero case, set abilities. Just select endurance aura. If here is lvl 1 you cant select more spells, nor increase lvl. This can only be done if hero is already on map. If you plan on buying that hero, that ability must be a unit aility. Unit abilities have only 1 lvl and need not to be selected, so he will have it always.

2nd: It is posible to set up a timer. It is done in many games (Island Defense, etc...), but I dont know how to do this.
 
the timer is pretty easy. YOu might want to go to the variable editor (under the trigger editor) and add a couple variables. 1st, you want one for the timer window. just name it TimerWindow. then one for the timer, named Timer. Simple, right?
now for the triggering.
You have to create your timer window before you can start it, but it all can be done in a single trigger

Pick your own event
  • Countdown Timer - Create a timer window for Timer with title Time Remaining
  • Set TimerWindow = (Last created timer window)
  • Countdown Timer - Show TimerWindow
  • Countdown Timer - Start Timer as a One-shot timer that will expire in 30.00 seconds
Replace the seconds with whatever time you want. you can also make this a "real" variable if you wanted.
Also a one shot timer is simply a timer that expires once.

Your event to register the timer running out of time would be

  • Time - Timer expires
 
Level 4
Joined
Aug 18, 2008
Messages
103
hmm I think I understood the first questions but for the second what are the variables type that I have to put for "Timer" and "Timerwindow" and do I have to put Array thing? And I need a timer that starts with 00.00.00 then 00.00.01,00.00.002,00.00.0003 not a countdown timer; its possible?
 
Level 4
Joined
Aug 18, 2008
Messages
103
I need to have a timer that when games starts it counts your seconds...to make it clear its like when you go out of a map..there the leaderboard right? with all the statistics of players...then at bottom left or right can't remember there a time that indicates how the game last...well i need that timer during game so people can see it when they are playing and they don't have to wait till the end of the game..ok?
 
Well basically you'll have a trigger that runs the entire game. Make three Integer variables. one named hours, one named minutes, and one named seconds


Here's your trigger.

  • Events
    • Time - Every 1.00 seconds of game time
  • Conditions
  • Actions
    • Set Seconds = (Seconds + 1)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Seconds Greater than 60
      • Then - Actions
        • Set Minutes = (Minutes + 1)
        • Set Seconds = (Seconds - 60)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Minutes Greater than 60
          • Then - Actions
            • Set Hours = (Hours + 1)
            • Set Minutes = (Minutes - 60)
          • Else - Actions
            • Do nothing
      • Else - Actions
        • Do nothing
Then you have to display the time in a multiboard using the integer values.
 
Level 4
Joined
Aug 18, 2008
Messages
103
well I made the trigger :) took me about 20 min to find all that lol:) euh sounds gay but how to display the time in multiboard using integer values?:) and this works only for TFT:( I need it for RoC tough
 
well I made the trigger :) took me about 20 min to find all that lol:) euh sounds gay but how to display the time in multiboard using integer values?:) and this works only for TFT:( I need it for RoC tough

sorry to say, but i doubt i'll be able to help you with the roc stuff. I hven't used that since.....zzzzzz
..wha...huh?
lol Maybe you could make it where a player types -time, it shows them the time as a game message. You would use a game message and concentrate the strings, plugging in the integer values where they are needed.

You have been playing (Hour integer) hours, (minute integer) minutes, and (seconds integer) seconds.
 
Level 5
Joined
Jun 7, 2008
Messages
141
@EternalVision
Just saying as you might need this info regarding your first question.
1st: Simmple. First make sure that hero has endurance aura. I hope you know how to do that. Then take that hero and set him on the map. Doubleklicking on him will open a window. In it you can change hero lvl, basic hp and mana, add items droped on death, and in hero case, set abilities. Just select endurance aura. If here is lvl 1 you cant select more spells, nor increase lvl. This can only be done if hero is already on map. If you plan on buying that hero, that ability must be a unit aility. Unit abilities have only 1 lvl and need not to be selected, so he will have it always.

I'm sure that you can't do this if you're planning to make a hero created through Training a Unit, Creating them, or simple units that are still needed to be created in game.
Just a simple fact. You know your hero has 2 ability sections right? Hero Spells and Unit Spells? Well, just to let you know (If you didn't), Unit Spells will appear on the unit already. So if I had a Ranger Hero with True Shot Aura on my Unit Spells, At the start of the game, True Shot Aura is already a spell regardless if I learned it or not. And, you also save 1 Skill Point (If the skill you plan on having at the start of the game only has one level).

Thats all. :)
 
Level 11
Joined
Jun 28, 2008
Messages
2,365
@EternalVision
Just saying as you might need this info regarding your first question.


I'm sure that you can't do this if you're planning to make a hero created through Training a Unit, Creating them, or simple units that are still needed to be created in game.
Just a simple fact. You know your hero has 2 ability sections right? Hero Spells and Unit Spells? Well, just to let you know (If you didn't), Unit Spells will appear on the unit already. So if I had a Ranger Hero with True Shot Aura on my Unit Spells, At the start of the game, True Shot Aura is already a spell regardless if I learned it or not. And, you also save 1 Skill Point (If the skill you plan on having at the start of the game only has one level).

Thats all. :)

Thats what I sed. Only diferent words, and maybe more complicated ^^.
I'm glad my post helped.
And other question helped me also, So i rep you guys all ^^
 
Level 11
Joined
May 31, 2008
Messages
698
For the first question you might wanna do it through triggers. Just use the action Hero - Learn Skill. If you dont do it with trigs then the hero has to be on the map already.
And i made a time trigger but it is only in seconds, not to tenths or hundreths of a second.

  • Time Set
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Time[0] = ((((String(Hours)) + h, ) + ((String(Minutes)) + m, )) + ((String(Seconds)) + s.))
      • Set Seconds = (Seconds + 1)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Seconds Greater than or equal to (>=) 60
          • Then - Actions
            • Set Seconds = 0
            • Set Minutes = (Minutes + 1)
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Minutes Greater than or equal to (>=) 60
                • Then - Actions
                  • Set Minutes = 0
                  • Set Hours = (Hours + 1)
                • Else - Actions
          • Else - Actions
  • Time Check setup
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Trigger - Add to Time Check <gen> the event (Player - (Picked player) types a chat message containing -time as An exact match)
  • Time Check
    • Events
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) the text: |cffffd700Game Time Elapsed:|r
      • Game - Display to (Player group((Triggering player))) the text: (|cff00ff00 + (Time[0] + |r))
 
Level 4
Joined
Aug 18, 2008
Messages
103
Well...I know I might sound boring but its getting a bit confused and I lost myself...can some1 plz summaries the timer trigger because for my first questions I did it and it works:) but for the other I don't understand:(
 
Level 1
Joined
May 4, 2009
Messages
6
  • Events
    • Time - Every 1.00 seconds of game time
  • Conditions
  • Actions
    • Set Seconds = (Seconds + 1)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Seconds Greater than 60
      • Then - Actions
        • Set Minutes = (Minutes + 1)
        • Set Seconds = (Seconds - 60)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Minutes Greater than 60
          • Then - Actions
            • Set Hours = (Hours + 1)
            • Set Minutes = (Minutes - 60)
          • Else - Actions
            • Do nothing
      • Else - Actions
        • Do nothing

Use that trigger Archangel_Tidusx made to have a timer. You need 3 interger variables, Hours, Minutes and Seconds (you can create them in the X button at the top iirc).

Then make another trigger to show the time when someone types -time. It is pretty easy (I can't use WorldEditor right now so it won't be exactly like this):

  • Events
    • Player - Player 1 types a chat message: -type
      • -- do this with all the players.
  • Conditions
  • Actions
    • Game - Show (triggering player) the message: You have been playing for + [Hours] + : + [Minutes] + : + [Seconds]
      • -- this one has a lot of substrings. Use convert interger to string to show these variables in the message.
 
Status
Not open for further replies.
Top