Trigger Help Please

tonton302

Member
Reaction score
0
I'm making an rpg and i would like to know how to make a suicide trigger.

(I would like the person to say -suicide and they die and respawn)

Also, I would like to know how to make an item bind system. After that I need to know how a player says (-d1 (it removes the item in slot 1 from the game)).

I hope you can help me and thanks.
 

jig7c

Stop reading me...-statement
Reaction score
123
Trigger:
  • Suicide
    • Events
      • Player(1) Red types in -suicide as an exact match
      • Player(2) Blue types in -suicide as an exact match
      • Player(3) <color>types in -suicide as an exact match
      • Player(4) <color>types in -suicide as an exact match
      • etc....
    • Conditions
    • Actions
      • Set group = All units selected by (Triggering Player)
      • Unit Group - Pick every unit in group and do actions
        • Loop
          • Unit - Kill (Picked Unit)
      • ----If you want to add wait, do it here----
      • Set respawnpoint = Center of Respawn <gen>
      • Unit Group - Pick every unit in group and actions
        • Loop
          • Unit - Create 1 (Picked Unit) at respawnpoint facing default building degrees
      • Custom script: call RemoveLocation (udg_respawnpoint)
      • Custom script: call DestroyGroup (udg_group)


RecipeSYS

Trigger:
  • Item Drop
    • Events
      • Player 1 (Red) types -d as a substring
      • Player 2 (Blue) types -d as a substring
      • Player 3 (Teal) types -d as a substring
      • etc..
    • Conditions
      • (Owner of (Triggering Unit) is an .....(don't have WE on this comp)
      • (Substring((Entered chat string), 3,3))) equal to or less than 6
    • Actions
      • For each integer A from 1 to 6, do actions
        • Loop
          • If/Then/Else
            • If
              • Entered (Substring((Entered chat string), 3, 3))) equal to (Integer A)
            • Then
              • Item - Remove item being carried from (Triggering unit) in slot (Integer A)
              • Else


all rough draft
 

tonton302

Member
Reaction score
0
When I tried the drop trigger it didn't drop the item but the suicide one works great TY
 

helpmeplease

New Member
Reaction score
7
this is item binding
Trigger:
  • Item build
    • events
      • unit - a unit accuires an item
    • conditions
      • (item-type of (item being manipulated)) equal to claws of attack +3
    • actions
      • if (all conditions are true) then do(then actions) else do (else actions
        • if - conditions
          • ((triggering unit) has an item of type mask of death) equal to true
        • then - actions
          • item - remove (item carried by triggering unit) of type claws of attack +3)
          • item - remove (item carried by (triggering unit) of type mask of death)
          • hero - create sword of death and give it to (triggering unit)
          • special effect - create a special effect at (position of (triggering unit)) using Abilities\Spells\Other\Charm\CharmTarget.mdl
      • else - actions


You have to do this in reverse so if the unit accquires the other item first it still works. this is only half. so just swap the items around
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top