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

Jobs

Status
Not open for further replies.
Level 9
Joined
Apr 3, 2008
Messages
700
It's a system from my old map. Here you craft an item by clicking the recipe.
Note: recipe is not perishable.
  • Events
    • Unit - A unit Uses an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Recipe: |c006464FFStaff of the Wisp|r
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Charges remaining in (Item carried by (Triggering unit) of type Wood)) Greater than or equal to 8
        • (Charges remaining in (Item carried by (Triggering unit) of type Mithril)) Greater than or equal to 2
        • (Charges remaining in (Item carried by (Triggering unit) of type Magical Stone)) Greater than or equal to 4
      • Then - Actions
        • Item - Remove (Item being manipulated)
        • If ((Charges remaining in (Item carried by (Triggering unit) of type Wood)) Greater than 8) then do (Item - Set charges remaining in (Item carried by (Triggering unit) of type Wood) to ((Charges remaining in (Item carried by (Triggering unit) of type Wood)) - 8)) else do (Item - Remove (Item carried by (Triggering unit) of type Wood))
        • If ((Charges remaining in (Item carried by (Triggering unit) of type Mithril)) Greater than 2) then do (Item - Set charges remaining in (Item carried by (Triggering unit) of type Mithril) to ((Charges remaining in (Item carried by (Triggering unit) of type Mithril)) - 2)) else do (Item - Remove (Item carried by (Triggering unit) of type Mithril))
        • If ((Charges remaining in (Item carried by (Triggering unit) of type Magical Stone)) Greater than 4) then do (Item - Set charges remaining in (Item carried by (Triggering unit) of type Magical Stone) to ((Charges remaining in (Item carried by (Triggering unit) of type Magical Stone)) - 4)) else do (Item - Remove (Item carried by (Triggering unit) of type Magical Stone))
        • Hero - Create |c006464FFStaff of the Wisp|r and give it to (Triggering unit)
      • Else - Actions
        • Game - Display to (Player group((Triggering player))) for 30.00 seconds the text: |cffff0000Error: Yo...
If you want to make crafting by clicking the ability, use:
  • Events
    • Unit - Unit starts casting the ability
  • Conditions
    • Ability comparison - Ability being cast equal to <your crafting ability>
  • Actions
 
Last edited:
Level 13
Joined
Oct 27, 2008
Messages
1,176
OK 2ND question seeing how the game i'm making is multi maps is there a way to put a spell book in a spell book
say like main spell book = crafting
secondary books= smithing, armor working, and so on
is it possible to set it up that way?
i know i would have to change the spell ID
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
ok n last seeing how im going to make Scrolls how you learn new things to make how can i make it that the hero has the crafting abilities already?
srry still a little new to WE
 
Level 9
Joined
Apr 3, 2008
Messages
700
You can add to hero a non-hero ability like to any other unit. For any abilities (including spellbook) you can set levels. You can check ability level of trigger spell in integer conditions, so you can make different actions for different ability levels.
 
Status
Not open for further replies.
Top