• 🏆 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!

Showing a variable's content into quest tab?

Status
Not open for further replies.
Level 4
Joined
May 17, 2011
Messages
106
Is that even possible?

I'm doing a quest where people have to kill a certain amount of units (20 trolls, 20 satyrs, etc.) and I want it to be shown in the quests tab. For each kill, it would show the number of units killed in the description.

Now all I want to do is show the content of my unit's variable into that description, is this possible without doing a quest update each time?

Thanks!

Edit: It has to show the variable's content and when it reaches 20 unit kills, it would show something like: Kill 20 trolls - Completed.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Not possible without changing the quest description, luckily that's easy to do:

  • Untitled Trigger 113
    • Events
      • Unit - A unit Dies
    • Conditions
      • Some condition to check that the dying unit is a quest unit
    • Actions
      • Quest - Change the description of *quest*to *description*
Turn this trigger on when you get the quest, turn it off when the quest is completed. For the description, use concatenate strings and then integer to string conversion.
 
Level 4
Joined
May 17, 2011
Messages
106
Yeah the problem is that I have multiple conditions for my quests so that's not going to be possible at all since I don't know what kind of units people are going to kill first... Okay well thanks anyway I guess this thread can be closed.
 
Level 26
Joined
Mar 19, 2008
Messages
3,140
Basically Make's egzample checks if all conditions here are True, but you can use: (Or - Any conditions are true) if you want to run actions if even one of them occurs.

What you mean with this: 'I don't know what kind of units people are going to kill first...'?
You want to check what type of unit died?
 
Level 4
Joined
May 17, 2011
Messages
106
Okay here's an example

For my quest, people have to kill trolls, furbolgs and satyrs.

If I make an update for my quest, it's gonna be something like

(troll's variable) trolls killed.
(furbolg's variable) furbolgs killed.
(satyr's variable) satyrs killed.

Lets say this. There are 4/20 trolls killed, 7/20 furbolgs and 2/20 satyrs.

How is the trigger supposed to know how many furbolgs and satyrs are dead when it adds +1 to the trolls? I can't just add the variable as text and hope it turns into a number to show the quester how many kills he got for each type of unit. Understood?

Just to make sure you understand, I want this to be shown in the quest tab ( F9 ), not on the screen.

Edit: I feel like I'm missing something but at the same time I feel like I can't do it... am I right? or do I really miss something here? oO
 
Status
Not open for further replies.
Top