Notes |
|
(0002065)
|
Ben
|
21-04-14 02:52
|
|
So with all this... what do you suggest the behavior be? |
|
|
(0002066)
|
Coruja
|
21-04-14 06:25
|
|
[TYPEDEF t_light_lit]
ON=@Timer
IF (<ATTR> & attr_decay)
REMOVE
ELSE
proceed with light charges (without change attr and without remove the item when light charges = 0)
ENDIF |
|
|
(0002069)
|
Feeh
|
21-04-14 17:14
|
|
What Coruja said makes sense. The flag is there to make things decay; that whats the name suggests |
|
|
(0002070)
|
Ben
|
22-04-14 02:01
|
|
Ok, changed things around a little for t_light_lit and it seems to work properly now.
Charges will decrease on timer like it used too.
When charges reach 0, few things can happen (these were already available options, except for attr_decay not working right)
1 - if (ATTR_DECAY) || (TDATA4 == 0)...burn out (torches do this)
2 - if (TDATA4 == ID same as defname)...It turns into infinite charges
3 - If (TDATA4 == some other ID)...turn into that ID (lanterns do this) |
|