I don't know if this is a error.
If i killed any NPC, the event "NPC - Death" will be triggering.
This event triggers a script, wich read the sysval "Param1", but in their isn't the npc-id. Why?
I don't know if this is a error.
If i killed any NPC, the event "NPC - Death" will be triggering. This event triggers a script, wich read the sysval "Param1", but in their isn't the npc-id. Why? | ||
|
According to the script help,"When you are using events to execute scripts,'Param1' is the object ID triggering the event",'Param1' stands for the ID of the NPC triggering the Death Event in your section(An NPC has three kinds of "ID", first is Type ID, like 1 stands for Goomba , 10 for SMB3 coins, second is Sequence ID, like index in an array, third is permanent ID,once an NPC is created it has a unique permanent ID and would not change any more),the 'Param1' is the second, you can use it like " npc( sysval(param1) ) ",for example npc(sysval(param1)).x = 100
| ||
But there is my problem: If NPC(sysval(Param1)).ID = 102 Then ... (102 = Red Coin) If the red coin goes death, i thriggers the event "NPC - Death". For me, this event triggers a Script, wich check, what NPC died. But the Param1 in sysval don't contains the sequence ID, it is always "0". | ||
Do you use "Sleep()" before using sysval(param1) ? The 'Param1' will only be available in the frame that death event being triggered, because data about the dead NPC will be remove after Death Event. | ||
No, i don't. But it's possible, that the event "NPC - Death" will not directly triggering after a death of an NPC? If yes, then i think 5438A38A have to fix this. | ||
I used 103: ![]() I think this is possible, but bad for me. | ||
Who is online (over the past 5 minutes)Users browsing this forum: 1 guest | ||