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

1 hero only can carry 1 spell book

Status
Not open for further replies.
Level 1
Joined
Apr 22, 2012
Messages
1
Hi...i am new

i wan do if 1 hero already carry 1 spell book...then he cant buy other spell book again...and the spell book will drop...

so if the player wan buy other spell book...he need to drop the carry spell book or sell it...
:vw_wtf:
 
Here you go

So if you want to make to hero cannot have two items of type spell book you can do it like this

  • Events
    • Unit - A unit Sells an item (from shop)
  • Conditions
    • Or - Any (Conditions) are true
      • ((Buying unit) has an item of type Spell Book 1) Equal to true
      • ((Buying unit) has an item of type Spell Book 2) Equal to true
      • ((Buying unit) has an item of type Spell Book 3) Equal to true
    • Or - Any (Conditions) are true
      • (Item-type of (Sold Item)) Equal to Spell Book 1
      • (Item-type of (Sold Item)) Equal to Spell Book 2
      • (Item-type of (Sold Item)) Equal to Spell Book 3
  • Actions
    • Game - Display to (Player group((Owner of (Buying unit))))the text: You can carry only one spells book
    • Item - Remove (Sold item)
Ofc Spell Book 1, 2 and 3 are only my names you can name it how you want. If you make it from this tutorial condition must be in the order like here if you want to work( it work for me). Tell me is it help you
 
Status
Not open for further replies.
Top