Help with quests...

Calibrator

New Member
Reaction score
1
Hey guys, i saw a guide to making a quest that gives EVERYONE experience/gold, but i couldn't find a guide on how to make a quest like

-On touch, a unit gives you a quest.
-After killing X units, it tells you to go back to X (Person) but ONLY for the person who killed the unit
-Grants the person who turned in the quest XX xp and XX gold.

Main thing is that ONLY THE PERSON WHO GOT QUEST will get the reward. Thanks =D
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
The magic likely happens when you finish the quest by killing that unit. If you have some (A Unit Dies) event, then you can easily use (Owner of (Killing Unit)) to get just the player you want.
 

Calibrator

New Member
Reaction score
1
Do you mind if you pull out your trigger and build it for me? Im pretty new at this stuff, it would be much easier just to copy the trigger down. Thanks =D!
 

Axe.killer

New Member
Reaction score
24
Dont have my wc3 editor on hand. in class atm.

here is what you gotta do
Ev
A unit dies
Cond
The type of unit that you want
Act
Set Boolean myUnitDead = true;


Ev
A unit is within x yards of Quest Giver
Cond
Unit == Hero
myUnitDead == true
Act
Hero give Xp to entering unit / unit within range
 

Calibrator

New Member
Reaction score
1
I get what your trying to do, but thats not how i want it. i need it as a REPEATABLE QUEST . Thanks though! =D! Can anyone make a bttr trigger, and with the actual editor? Sorry for being picky =/
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
> Can anyone make a bttr trigger

You certainly can. :p
What have you tried so far? What is not working about it? How about posting it here so we can take a look?
 

Calibrator

New Member
Reaction score
1
Well, truthfully, my triggers are fail xD. It'd be much faster if someone has a map i could copy/paste off of, or if one of you can build one real quick =D
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
Speed isn't the issue here. The point is that you actually learn something so that you can do more on your own next time. Pasting in a bunch of code that you don't understand is not nearly as beneficial as creating said code yourself. (Especially considering this is fairly simple stuff to start with.) This kind of issue is addressed in the Rules. (See the section by AceHart and the note that we are not an editing service. :))
 

Calibrator

New Member
Reaction score
1
Okay, fine, heres my fail trigger xD, Dont laugh if its really bad
Trigger:
  • UGH 3
    • Events
      • Unit - A unit comes within 256.00 of Villager (Male) 0080 <gen>
    • Conditions
    • Actions
      • Trigger - Turn on UGH 2 <gen>
      • Trigger - Turn on UGH <gen>
      • Floating Text - Create floating text that reads Hello, If you could... above Villager (Male) 0080 <gen> with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency



Trigger:
  • UGH 2
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Spider
    • Actions
      • Set BabySpider = (BabySpider + 1)


Trigger:
  • UGH
    • Events
      • Unit - A unit comes within 256.00 of Villager (Male) 0080 <gen>
    • Conditions
      • BabySpider Equal to 10
    • Actions
      • Hero - Add 20 experience to (Triggering unit), Show level-up graphics
      • Trigger - Turn off (This trigger)



Reason i dont want it is

-Its not repeatable
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
Ok, not a bad start. Now, the help. :)

Try making your triggers look something like this and see what happens (we'll get to the repeatable part):

Trigger:
  • UGH 2
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Set BabySpider = (BabySpider + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • BabySpider Greater than or equal to 10
        • Then - Actions
          • Set ThePlayer = (Owner of (Killing unit))
          • Trigger - Turn off (This trigger)
        • Else - Actions


Trigger:
  • UGH
    • Events
      • Unit - A unit comes within 256.00 of Villager
    • Conditions
      • BabySpider Greater than or equal to 10
      • ThePlayer Equal to (Owner of (Triggering unit))
    • Actions
      • <The other stuff>
      • Trigger - Turn off (This trigger)
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
> What type of variable is ThePlayer?

It is a variable of type "Player". (How ironic. :p)

> open up your Yahoo so we can IM?

I'm online.
 

Calibrator

New Member
Reaction score
1
Huh? Whats your account name? I mustve put you under wrong contact o_O

It Worked =D! But now, the repeatable part, and is there a way to remove the floating Text after X Seconds? Ty so much for your help btw =D
 

eclypt

New Member
Reaction score
4
you can use a Wait function or simple runs a trigger with the wait function "Exactly timed" for destroy the floating text. but you will need to set it in a Variable.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
Ok then. For the repeatable part:

Add this to the end of the first trigger:

Trigger:
  • Trigger - Turn off (This trigger)


And then add these right after the award is given for completing the quest:

Trigger:
  • Set BabySpider = 0

Trigger:
  • Trigger - Turn on UGH 3
 

Calibrator

New Member
Reaction score
1
Thanks, one last thing, how do i remove the text, or make it float away ?

EDIT: One last, last thing xD, how do i put a ! mark above the villager's head?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
For the floating text, perhaps try adding this when you give the reward (or whenever you want it to vanish):

Trigger:
  • Floating Text - Destroy (Last created floating text)


> how do i put a ! mark above the villager's head?

That would be a special effect.

Trigger:
  • Special Effect - Create a special effect attached to the overhead of (Some unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top