• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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