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

tome of inteligence +2

Status
Not open for further replies.
Level 2
Joined
May 13, 2009
Messages
15
I was just testing my map out and tried to pick up a unedited tome of inteligence +2 with an custom made model it gave me an error and threw me out of warcraft 3 i figured it has something to do with the unit not being able to use the tome but still trying to pick it up?

if thats the case how do i prevent the unit from trying to pick it up even if u click on it?
 
Normal units cannot pick up tomes, only heroes. In order to override this, do this:
  • Trigger1
  • Events
    • Unit - A unit is issued an order targeting an object
  • Conditions
    • ((Triggering unit) is a Hero) Equal to False
    • (Item-type of (Target item of issued order)) Equal to Tome of Intelligence +2
  • Actions
    • Set Point1 = (Position of (Target item of issued order))
    • Unit - Order (Triggering unit) to Move to Point1
    • Custom script: call RemoveLocation (udg_Point1)
 
Level 2
Joined
May 13, 2009
Messages
15
Well i want the trigger so that normal units cannot pick up the tomes and all xD, iam modding this map and i think it has been deleted.
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
you can put tomes at one class like power up,so if unit wants to pick up power up tome,dont allow him,

you can also set life value or level value of tome to some number that no other item has and make condition from that


and i think for stopping unit when issued an order you can also

pause unit
unpause unit
order unit to stop

however this sometimes does not work but it works more times than moving unit to point
 
Level 2
Joined
May 13, 2009
Messages
15
Well shoot and i thought iam getting the hang of WE but your all talking in terms i dont understand lol.

The reason for this is that its gonna be an online map and i dont want people to be thrown out because they pick some tomes up with the wrong units, it only does this with tomes that add statts to your unit so with items it hasnt any problems (mainly because many units have given the backpack ability).

so whats the best and easiest solution?

many thanks already and + rep to all that are trying to help me :).
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
Well shoot and i thought iam getting the hang of WE but your all talking in terms i dont understand lol.

The reason for this is that its gonna be an online map and i dont want people to be thrown out because they pick some tomes up with the wrong units, it only does this with tomes that add statts to your unit so with items it hasnt any problems (mainly because many units have given the backpack ability).

so whats the best and easiest solution?

many thanks already and + rep to all that are trying to help me :).

i don't understand really .....

we already wrote a trigger that will stop you units to pick up items like tomes,what else do you need?,what do you need ? xD

here is your trigger ....

change conditions if needed
  • Stop unit when ORDERED to pick up an item
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Item-class of (Target item of issued order)) Equal to Powerup
      • ((Triggering unit) is A Hero) Equal to True )
    • Actions
      • Unit - Pause (Triggering unit)
      • Unit - Unpause (Triggering unit)
      • Unit - Order (Triggering unit) to Stop
      • Game - Display to (Player group((Owner of (Triggering unit)))) the text: Unable to use ...
 
Status
Not open for further replies.
Top