| 09-25-2003, 09:05 AM | #1 |
okay like first thing all if u grab a item like a sword u cant get another weapon.som1 plz tell me the triggers |
| 09-25-2003, 09:21 AM | #2 |
Trigger -Event- Hero picks up item -Condition- Item type equal to Weapon (use a 'or' setup for all weapons) -Action- If (Variable HasSword set to 0) -Then (Set Variable HasSword to 1) -Add Special Effect of whatever weapon you got to Hero's hand -Set Variable 'Weapon' to Last created special effect Else (Make Hero Drop Item) Trigger -Event- Hero drops item -Condition- Item type equal to Weapon (Copy&Paste this part from the above trigger) -Condition- 'HasSword' set to 1 -Action- Set 'HasSword' to 0 -Action- Destroy special effect 'Weapon' You get the idea, I hope.. |
| 09-25-2003, 09:53 AM | #3 |
umm u mean uses right? or aquied cuz okay ummm in the event it wont let me say hero theres just no unit do i put a varible? |
| 09-25-2003, 10:38 AM | #4 |
I'll explain further in depth, then.. Say your map has three weapons, a sword, an axe, and a hammer. You'd create a variables.. A Boolean Variable, 'HasWeapon'. Then you make a trigger like this. Event - Generic Unit Event - A unit aquires an item Condition - Or, Multiple Conditions - Any Conditions are True (Item-type of ((Item being Manupulated)) Equal to Sword (Item-type of ((Item being Manupulated)) Equal to Axe (Item-type of ((Item being Manupulated)) Equal to Hammer Action - If/Then/Else, Multiple Functions If: Boolean Comparison - HasWeapon equal to False Then: Set Variable - HasWeapon = True Else: Hero - Drop Item From Hero - Drop Item Being Manipulated from Hero Manipulating Item I hope that wasn't too complex. |
| 09-25-2003, 12:39 PM | #5 |
You can also check when a unit is issued the order "smart" on a weapon item on the ground, and if he has a weapon, order him to stop and display a text telling him that he cannot wield more weapons. Just be sure to use Saethori's trigger at the same time. By the way, it would be cool if certain heroes could wield 2 weapons at once, like the barbarian from Diablo II for instance. |
