Item Clicks

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
175
Redditch, UK
Ive set up about 5 item clicks using different Shapes as Idabiga suggested, each calling a different txt file for there script but the same script is being called for every item (the first one).

The only things i can work it it could be is
a) reloading 00default doesnt refresh the item clicks?
b) they all have to be in the same text file, which i cant see as lotto is called from a different script.

Any ideas please?
 

Azura

Mir3 Coder & Adviser
Untrusted Member
Golden Oldie
Mar 12, 2005
3,260
116
330
In 00default.txt

[@main]
#ACT
goto @ItemClick

[@ItemClick]
#CALL [System\ItemScripts\Item.txt] @EventItem_Item

In the Item.txt

[@EventItem_Item]
{
#ACT
SetItemEvent 61 5 @Item
SetItemEvent 61 6 @Item2

61 = StdMode, All Clickable Items should have this.

5 = Shape, Each new click script needs a new number.

@Item = The script the Item calls later.

Later in Item.txt

[@Item]
Your Script here.

[@Item2]
Your Script here.
 
Upvote 0

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
125
Manchester, UK
you need a seperate bit of the script for each item you are trying to set up. Doing it the way you have it wont work as every item will attempt to access the same part of the script. It's easier to just section off the clickable items on 00default.txt and in the itemscript.
 
Upvote 0