• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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