• 🏆 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!

Problem with the rawcode of a item in a custom script...

Status
Not open for further replies.
Level 14
Joined
Aug 8, 2010
Messages
1,022
Hello! As the title says - i have a problem. When i put this action in my trigger :
  • Custom script: set udg_TempInt = 'ratf'
everything is ok, i have the rawcode of an item in a variable. But when i try to set it to a custom item :
  • Custom script: set udg_TempInt = 'l004:ratf'
i get an error... I am 100% that i have typed the rawcode incorrectly, but i don't know which is the right way.

Help is appreciated with a +rep. Thanks in advance!
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
There's no need to place the base item :) 'l004' is enough.

The first value is the Item Raw Code, the second value is the base item raw code
 
Status
Not open for further replies.
Top