HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[help me + request] item & spell

01-21-2006, 11:51 PM#1
Alexis Axel
dunno which place i should post this. if i'm wrong just move.
Before and after i only know about triggers, i'm blind at jass T_T

the first thing is i need to know how to make such as item restriction to a hero.
I mean heroes cannot have same 5 items in his slot. how do i apply the restriction?

the second thing is a request, can this spell be made? if this spell can be made would somebody made it for me?
The base idea of this spell is like the chariot. The horse eventually drag the chariot right. I want to make a spell that using arthas or any mounted unit that can target a unit to be dragged, the targeted unit is move following (dragged) wherever the mounted unit go.

So it just like achiles drag hector when he won the fight.
Or western sheriff drag the bad guy with their horse
01-22-2006, 12:12 AM#2
Das Jank
There are a few ways to do the item thingy... it all depend on if you want to use item-type, item life, item level, or custom value.... then you can just set up your trigger like this:

Trigger:
Events
Collapse Untitled Trigger 001
Collapse Events
Unit - A unit Acquires an item
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
IntegerVariable Equal to 0
Collapse Then - Actions
Set IntegerVariable = 1
Collapse Else - Actions
Hero - Drop (Item being manipulated) from (Hero manipulating item)

and where the "If - Conditions" is would be where you would put one of these 4 conditions depending on what you wanted to use....

Trigger:
(Item level of (Item being manipulated)) Equal to 1
(Custom value of (Item being manipulated)) Equal to 1
((Item-type of (Item being manipulated)) is A powerup) Equal to True
(Integer((Current life of (Item being manipulated)))) Equal to 1
01-22-2006, 09:53 AM#3
Thunder_Eye
This is an really easy way to do it.

Trigger:
Untitled Trigger 007
Collapse Events
Unit - A unit Acquires an item
Collapse Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Item-type of (Item being manipulated)) Equal to <Your Item>
(Item-type of (Item being manipulated)) Equal to <Your Item2>
(Item-type of (Item being manipulated)) Equal to <Your Item3>
..........
Collapse Actions
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
(Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
Collapse Then - Actions
Hero - Drop (Item being manipulated) from (Hero manipulating item)
Else - Actions
01-22-2006, 04:16 PM#4
Alexis Axel
Ah thank you very much, it really worked, but
what if i want the hero can only carry 2 of the same item,
how should the trigger be?

Umm. and ismy idea of spell can be made?
01-22-2006, 04:18 PM#5
Thunder_Eye
Ofcourse it can be made, just not maybe exactly as you imagine it.
though it's a bit complicated and I dont have the time to do it for you right now.