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

multiple questions

Status
Not open for further replies.
Level 7
Joined
Sep 24, 2008
Messages
281
I seem to be having trouble regarding to issues, would anyone happen to know how to accomplish them?
1. How can you color your text (i.e. make some have yellow and some white?)
2. How would one go about making a quest in which you had to kill 20 sky barges, and it displayed the number of sky barges killed in the top right hand corner (any corner really, I don't care.)
3. how can one make player one, as an example, the color of teal? I can make it so that player one plays as teals' player number, but his units are still red.
Thank you, :grin:
 
Level 7
Joined
Sep 24, 2008
Messages
281
In regards to number 2, I was going for more of a constant display, which is updated each time you kill a sky barge (0/20 sky barges killed.) How would I do that?
Edit: how would one make it so that the text would resemble:
Sky Barges killed:
(current value of sky_barges_killed(a variable))/20
 
Last edited:
Level 4
Joined
Apr 18, 2009
Messages
127
In regards to number 2, I was going for more of a constant display, which is updated each time you kill a sky barge (0/20 sky barges killed.) How would I do that?
Edit: how would one make it so that the text would resemble:
Sky Barges killed:
(current value of sky_barges_killed(a variable))/20

An easy (wierd) way:




  • Test
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to YOURUNITGOESHERE
          • ((Dying unit) has buff QUESTBUFF) Equal to True
        • Then - Actions
          • -------- If your units gets spawned when quest is accepted and removed when its done, it deos not matter, but I will now use a buff that are applied, so you are sure that they are quest material --------
          • Game - Display to (All players) the text: ((You have killed + YOURVARIABLE) + /20 Sky Barges)
        • Else - Actions
You could also make a leaderboard or something
 
Level 7
Joined
Sep 24, 2008
Messages
281
Would you happen to have the played the Frozen Throne orc campaign? Essentially, I want the effect that you get when you travel to the echo isles, and have to kill 5 battleships. Is there a way of opening base campaings?
 
Level 7
Joined
Sep 24, 2008
Messages
281
I think, that no, but what exactly you want?

I'll take a screenshot, one moment:
Edit: alright, here it is:
BattleshipsSunk.jpg
 
Last edited:
Level 4
Joined
Apr 18, 2009
Messages
127
I rest my case:


An easy (wierd) way:




  • Test
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to YOURUNITGOESHERE
          • ((Dying unit) has buff QUESTBUFF) Equal to True
        • Then - Actions
          • -------- If your units gets spawned when quest is accepted and removed when its done, it deos not matter, but I will now use a buff that are applied, so you are sure that they are quest material --------
          • Game - Display to (All players) the text: ((You have killed + YOURVARIABLE) + /20 Sky Barges)
        • Else - Actions

Edit: Eventually you can also add the "return to" thingy. But to create a layout like the one in the picture, you must use 3 actions after each other. So it will be something like this:

  • Actions
  • Game - Display to (All players) the text: ((Main Quest Update((*-I DON'T KNOW IF THIS APPEARS AUTOMATICAL-*))
  • Game - Display to (All players) the text: ((-Kill all the Sky Barges. + ((You have killed + YOURVARIABLE + of 20))
  • Game - Display to (All players) the text: (-Return to QUESTGIVER)
As you may have noticed you need quite some Arathimetics(?) with strings here.
I wrote this in the middle of the night, not checking in the editor so it might be something that is wrong, but you get the idea ;)
 
Level 7
Joined
Sep 24, 2008
Messages
281
I rest my case:




Edit: Eventually you can also add the "return to" thingy. But to create a layout like the one in the picture, you must use 3 actions after each other. So it will be something like this:

  • Actions
  • Game - Display to (All players) the text: ((Main Quest Update((*-I DON'T KNOW IF THIS APPEARS AUTOMATICAL-*))
  • Game - Display to (All players) the text: ((-Kill all the Sky Barges. + ((You have killed + YOURVARIABLE + of 20))
  • Game - Display to (All players) the text: (-Return to QUESTGIVER)
As you may have noticed you need quite some Arathimetics(?) with strings here.
I wrote this in the middle of the night, not checking in the editor so it might be something that is wrong, but you get the idea ;)

I'm testing to see if this works as we speak, but just in case you didn't realize, (I'm not sure if you did, as I haven't checked the trigger) I am refering to the BattleShips Sunk 0/5 in the top right hand corner of the screen. Anyway, confirming if this will work...one moment please
 
Level 4
Joined
Apr 18, 2009
Messages
127
I am refering to the BattleShips Sunk 0/5 in the top right hand corner of the screen. Anyway, confirming if this will work...one moment please

Sorry, I must have misunderstood. Anyways you will need a leaderboard:

start out with this

  • Leaderboard - Create a leaderboard for (All players) titled (Sky Barges Killed: + (String(YOURUNITINTEGERGOESHERE)))
  • Set Leaderboard_Sky_Barges = (Last created leaderboard)
NOTE:
You don't need the last variable, but if you're using several of them, I reccomend it.
Also you should add some spaces after "Killed:" in the title, so you get some space between the number and the title.

Now create a second trigger.

It should look something like this:

  • Trigger
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Peasant
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • YOURUNITINTEGERGOESHERE Equal to 20
        • Then - Actions
          • Leaderboard - Destroy Leaderboard_Sky_Barges
          • Game - Display to (All players) the text: You have killed all...
          • -------- Just an example. --------
        • Else - Actions
          • Set YOURUNITINTEGERGOESHERE = (YOURUNITINTEGERGOESHERE + 1)
          • Leaderboard - Change the title of Leaderboard_Sky_Barges to (Sky Barges Killed: + (String(YOURUNITINTEGERGOESHERE)))
 
Status
Not open for further replies.
Top