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

A few questions about the editor. Please :P

Status
Not open for further replies.
Level 2
Joined
Oct 12, 2013
Messages
17
Hi all..

Im making a map with my friend and we need some help :( Can anyone answer to my few questions pls? :)

1) How can we make DROP from mobs?
--- For Example "15% to drop Claws +15 damage from nerubian spider"

2) How can we do that heroes will have visible weapons from inventory in hand
--- For Example I will drop sword and my hero will get a weapon in his hand.

3) And last.. HOW can we make Quester (Quest giver) with Quest ? :/
--- For Example I will come to Villager (FOR NOW the one that gives the Quest), and he gives Quest to kill 10 centaurs.


I know a lot of questions :/ but better to write in one article than once on 3 :))

Thanks to everyone who knows at least something :) Thanks to everyone who knows at least something :) Even those who try to help. I appreciate the effort :)
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
1) How can we make DROP from mobs?

Here's one way to do it:

  • Set Items
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- Add in new items here --------
      • Set ItemDrops[1] = Claws of Attack +12
      • Set ItemDrops[2] = Ring of Protection +5
      • Set ItemDrops[3] = Keg of Ale
      • Set ItemDrops[4] = Wirt's Leg
  • Claws
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • -------- Will first check for 15% chance. --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to 15
        • Then - Actions
          • -------- Will create random item which was set in "Set Items" --------
          • Set Item_Posi = (Position of (Dying unit))
          • Item - Create ItemDrops[(Random integer number between 1 and 4)] at Item_Posi
          • Custom script: call RemoveLocation (udg_ItemPosi)
        • Else - Actions
2) How can we do that heroes will have visible weapons from inventory in hand

Follow a tutorial to learn about attachments.

http://world-editor-tutorials.thehelper.net/attachments.php


3) And last.. HOW can we make Quester (Quest giver) with Quest ? :/

There are a few ways to go about this. You will probably use these two functions:

  • Quest - Create a Required quest titled Lost possesions with the description Go find the Village..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
  • Quest - Display to (All players) the Quest Discovered message: Lost possesions: Go...
  • -------- You following actions: --------
But how do you get these quests? Do you get these quests when you walk near the "Quest giver". Or do you get the quest when you buy an item from him or something?

  • Quest
    • Events
      • Unit - A unit comes within 256.00 of Quest Giver <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to YOURHERO
    • Actions
      • Quest - Create a Required quest titled Lost possesions with the description Go find the Village..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
      • Quest - Display to (All players) the Quest Discovered message: Lost possesions: Go...
      • -------- You following actions: --------
This trigger will give a quest when you enter within a small range of the quest giver with your hero or whatever unit.


Hope this helps.
 

Rheiko

Spell Reviewer
Level 25
Joined
Aug 27, 2013
Messages
4,121
you have to use trigger
1. use item table or this trigger:
  • Events
    • Unit - A unit Dies
  • Conditions
    • (Owner of (Triggering unit)) equal to Neutral Hostile
  • Actions
    • If (All conditions are true) then (actions) else (actions)
      • If - Conditions
        • Random number between 1 and 100 less than or equal to 15
      • then - actions
        • Item - Create YourItem at (Position of (Triggering unit))
      • else - actions
2. make an ability based on item attack bonus, set the attack bonus to 0 and gives it a special effect (your sword, etc)
3. Need trigger
 
Level 2
Joined
Oct 12, 2013
Messages
17
Aaaaa i have 1 more Question :X

Please.. How can i make a PvP zone? :) only 1 all vs all zone :)

I Mean RPG map with simply 1 PvP zone :p

sorry for so many questions :/
 
Level 2
Joined
Oct 12, 2013
Messages
17
mmm how to write >.>

RPG map ppl are lvling - killing mobs etc. with friend/s. and PvP zone is zone where they can be moved by and where you can compete with your friends. normally you agree with them in the team but in this area you can fight with other.
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
Hi Bloodywolf, you could try reading some of the tutorials to get a hang of basic triggering, or if you have not time, try creating a thread requesting for one at the requests section.
 
Status
Not open for further replies.
Top