set string = race of someone

Samael88

Evil always finds a way
Reaction score
181
You can do this:

If player race == orc
set string = orc


But why bother when there is a race variable. Not sure if it is useable in GUI tho, but it is there, and yes it is possible:thup:
 

minikrampan

Ultra Cool Member
Reaction score
28
hehe, Im just trying a stupid thing. Will post if it works :) thanks for help tho, didnt thought of that.

EDIT: here it goes

Trigger:
  • Toss
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Living toss
    • Actions
      • Set casting_unit = (Casting unit)
      • Set target = (Target unit of ability being cast)
      • If ((Race of target) Equal to Human) then do (Set race = human\) else do (Do nothing)
      • If ((Race of target) Equal to Orc) then do (Set race = orc\) else do (Do nothing)
      • If ((Race of target) Equal to Undead) then do (Set race = undead\) else do (Do nothing)
      • If ((Race of target) Equal to Night Elf) then do (Set race = nightelf\) else do (Do nothing)
      • Set unit_type = (units\ + (race + ((String((Unit-type of target))) + (\ + ((String((Unit-type of target))) + .mdl)))))
      • Special Effect - Create a special effect attached to the hand of casting_unit using unit_type
      • Unit - Hide target


not done yet, Gonna make a toss when the unit grants a new ability so you can throw the current one away :D
to bad the special effect changes color to match your unit. :/
 
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