Sallycantdance Posted August 7, 2023 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 21 hours ago Share Posted August 7, 2023 (edited) hello everyone did you experience this error too? Quote [Error]: get_val_: fatal error ! player not attached! [Debug]: Source (NPC): mob_vs_mob_main (invisible/not on a map) [Warning]: script:get_val: cannot access player variable 'MD_CANATTACKMOB', defaulting to 0 Lines: Quote } .@mob_gid_1 = bg_monster(1, .map$, 51, 87, "--ja--", .mob_id_1, .npc_name$+"::OnKill1"); .@mob_gid_2 = bg_monster(2, .map$, 64, 87, "--ja--", .mob_id_2, .npc_name$+"::OnKill2"); getunitdata .@mob_gid_1, .@unitdata; setunitdata .@mob_gid_1, UMOB_MODE, .@unitdata[UMOB_MODE] | (MD_AGGRESSIVE|MD_CANATTACK|MD_CANATTACKMOB); setunitdata .@mob_gid_2, UMOB_MODE, .@unitdata[UMOB_MODE] | (MD_AGGRESSIVE|MD_CANATTACK|MD_CANATTACKMOB); while (!.winner_mob_id) { unitattack .@mob_gid_1, .@mob_gid_2; unitattack .@mob_gid_2, .@mob_gid_1; sleep 2000; } Edited August 7, 2023 by GM Winter Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted August 7, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 93 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted August 7, 2023 (edited) Your script thinks MD_CANATTACKMOB is a permanent variable attached to a character, but since this script doesn't get executed by a character, there is no rid attached. Therefore, the parser doesn't have a character it can get the MD_CANATTACKMOB variable from and defaults to 0. The reason why the parser thinks MD_CANATTACKMOB is a permanent character variable is because it isn't an existing monster mode flag. This means there is also no constant exported to the script space. Edited August 7, 2023 by Winterfox Quote Link to comment Share on other sites More sharing options...
0 Gidz Cross Posted August 7, 2023 Group: Members Topic Count: 133 Topics Per Day: 0.03 Content Count: 686 Reputation: 89 Joined: 04/07/14 Last Seen: Sunday at 08:18 AM Share Posted August 7, 2023 11 hours ago, GM Winter said: hello everyone did you experience this error too? Lines: Ask support to the author. Quote Link to comment Share on other sites More sharing options...
Question
Sallycantdance
hello everyone did you experience this error too?
Lines:
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.