• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need some help with triggers for my rpg :)

Status
Not open for further replies.
Level 1
Joined
Jun 14, 2012
Messages
5
Hi guys. Iam new to the editors advanced stuff so i can basicly nothing ^^
I would be grateful if you guys could help me :smile:

Iam working on a rpg atm. If you would like to help me then i need:
Advanced triggers.
Terrain (would like a sample of you work if so).
Models.

Well my first question is how i make a item have a level requirment like ''lvl10 axe can only be wield by heroes 10+''

Second question is that i have a problem with the item drops. The creeps drop the items first but when they respawn their itemtable is removed.


PS: sorry if its wrong forum to post this on
 
Level 11
Joined
Jun 20, 2009
Messages
880
The level requirement is easy to do. Here's an example trigger:
  • Steel Claws
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to |cffffcc00Steel Claws|r
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Hero manipulating item)) Less than 10
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
          • Game - Display to (All players) for 5.00 seconds the text: |cffffcc00You need ...
        • Else - Actions


About the item drops. You should trigger the item drops if you wanna good
results. Another example trigger:
  • Crab Item Drops
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to |cffffcc00Crabby|r
    • Actions
      • Set DropChance = (Random integer number between 1 and 100)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DropChance Less than or equal to 25
        • Then - Actions
          • Set Point = (Position of (Triggering unit))
          • Item - Create Cheese at Point
          • Custom script: call RemoveLocation(udg_Point)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DropChance Greater than or equal to 26
          • DropChance Less than or equal to 50
        • Then - Actions
          • Set Point = (Position of (Triggering unit))
          • Item - Create |cffffcc00Steel Claws|r at Point
          • Custom script: call RemoveLocation(udg_Point)
        • Else - Actions
 

Attachments

  • Test Map.w3x
    14.4 KB · Views: 52
Level 33
Joined
Mar 27, 2008
Messages
8,035
Well my first question is how i make a item have a level requirment like ''lvl10 axe can only be wield by heroes 10+''
  • Item Check
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Ogre Axe
          • (Level of (Triggering unit)) Greater than or equal to 10
        • Then - Actions
        • Else - Actions
          • Game - Display to (All players) the text: Your Hero must be Level 10 and above to wield this item
Second question is that i have a problem with the item drops. The creeps drop the items first but when they respawn their itemtable is removed.
Perhaps it's because you did the item table once on a pre-set unit in the World Editor.

Actually, Units in Warcraft III does not related to each other, meaning they do not literally respawn but more towards created each time the unit dies.

Therefore, Unit A is not Unit B, in this case, the Item Table only works for Unit A (which is in the World Editor)

What you need is a simple trigger, 2 triggers to be exact, 1 for setting up and 1 for event
I have created a test map for you, hope you'll understand.
 

Attachments

  • Simple Item Table System.w3x
    13.7 KB · Views: 42
Level 1
Joined
Jun 14, 2012
Messages
5
About the item requirments. do i have to make a trigger for each item i use then?


Thanks for the quick anwsers. Ok ive tried them both and they seemse to be really helpfull but got a friend that will do it for me. the drop trigger i mean by that. and my question about item req lvl is the same ^^
 
Last edited:
Status
Not open for further replies.
Top