token lever change

mmheo

Member
Joined
Sep 14, 2017
Messages
113
Reaction score
1
anyone can help me in script change token for items
if 3 >>9970 add one items off >> 9971
if 4 >> 9971 add 1 >8310
tfs 0.4

token spot >>>>>>>>>> new items spot
 

Attachments

Last edited:
OP
mmheo

mmheo

Member
Joined
Sep 14, 2017
Messages
113
Reaction score
1
???
if i put 4 items from 9970 change for 1 items 9970
anyone can help ?
 

Discovery

Developing myself
Joined
Apr 16, 2010
Messages
378
Reaction score
78
Location
Central Circle I, South - Edron
Hello @mmheo .

First of all, take a look how to get help using another threads like reference(model).

I will help you when you explain details about your TFS version you're using.
For now:

TFS 1.x+, try to use

Tile(Position):getItemById(TOKEN_ID, -1)
Game.createItem(ITEM_ID_RESULT_OF_TOKEN, ITEM_COUNT, Position(X, Y, Z))


Thank you!
 
OP
mmheo

mmheo

Member
Joined
Sep 14, 2017
Messages
113
Reaction score
1
Hello @mmheo .

First of all, take a look how to get help using another threads like reference(model).

I will help you when you explain details about your TFS version you're using.
For now:

TFS 1.x+, try to use

Tile(Position):getItemById(TOKEN_ID, -1)
Game.createItem(ITEM_ID_RESULT_OF_TOKEN, ITEM_COUNT, Position(X, Y, Z))


Thank you!
im use 0.4
 
Top