- Joined
- Aug 8, 2010
- Messages
- 1,022
Hello. Is there a script that can get the ID of an Item-Type (not Item) variable? I mean, do i have to do this :
Location - Location
ItemCreated - Item-Type
Item - Item
Integer - Integer
Or i can do something like
-
Recipes Save Copy
-

Events
-

Conditions
-

Actions
-


Set Location = (Center of (Playable map area))
-


Item - Create ItemCreated at Location
-


Set Item = (Last created item)
-


Custom script: set udg_Integer = GetItemTypeId(udg_Item)
-


Item - Remove Item
-


Custom script: call RemoveLocation(udg_Location)
-


Hashtable - Save Integer as (Key RecipeItemCreated) of 1 in RecipeHash
-
-
Location - Location
ItemCreated - Item-Type
Item - Item
Integer - Integer
Or i can do something like
-
Custom script: set udg_Integer = GetItemTypeId(udg_ItemCreated)

