HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Help

02-08-2004, 10:44 PM#1
truearkx
Well ile need a trigger to this and i was having trouble doing it so ile ask for 1 lol ok here,a hero picks up an item Tidal blade and sea blade,Once they are pick up Remove Tidal and sea and replace it with Another item how do i do that,if anyone can answer this ile give them points of they want8))
02-08-2004, 10:50 PM#2
AnarkiNet
I have no ****ing clue what you just spewed from.....wherever that came out of. Speak in English, and someone might possibly be able to help you. Also, if you posted what you had already tried, your problem would most likely be solved quicker.
02-08-2004, 11:18 PM#3
AllPainful
First off, I don't want your points, the answer is free :D

2 triggers:
Code:
Event
  Hero acquires an item
Coditions
  Acquired item is Sea blade
Actions
  Do loop for integer a from 1 to 6
    Loop
      If
       Coditions
         Item in slot (integer a) of unit (hero manipulating item) is Tidal blade
       Then
         Remove item in slot (integer a) from hero manipulating item
         Remove (item being manipulated) from hero manipulating item
         Add **** Item to hero manipulating item
         Trigger (skip remaining actions)
       Else
         Do nothing

Event
  Hero acquires an item
Coditions
  Acquired item is Tidal blade
Actions
  Do loop for integer a from 1 to 6
    Loop
      If
       Coditions
         Item in slot (integer b) of unit (hero manipulating item) is Sea blade
       Then
         Remove item in slot (integer b) from hero manipulating item
         Remove (item being manipulated) from hero manipulating item
         Add **** Item to hero manipulating item
         Trigger (skip remaining actions)
       Else
         Do nothing


Or 1 trigger
Code:
Event
  Unit Acquires Item
Conditions
  Or Conditions
       Acquired item is Tidal blade
       Acquired item is Sea blade
Actions
  If
    Conditions
       Item being manipulated is Tidal Blade
    Then
       Do loop for integer a from 1 to 6
         Loop
           If
             Coditions
               Item in slot (integer a) of unit (hero manipulating item) is Sea blade
             Then
               Remove item in slot (integer a) from hero manipulating item
               Remove (item being manipulated) from hero manipulating item
               Add **** Item to hero manipulating item
               Trigger (skip remaining actions)
             Else
               Do nothing
     Else
       Do loop for integer a from 1 to 6
         Loop
           If
             Coditions
               Item in slot (integer a) of unit (hero manipulating item) is Tidal blade
             Then
               Remove item in slot (integer a) from hero manipulating item
               Remove (item being manipulated) from hero manipulating item
               Add **** Item to hero manipulating item
               Trigger (skip remaining actions)
             Else
               Do nothing
02-09-2004, 01:30 AM#4
truearkx
thankz il help:D