Search the Community
Showing results for tags 'GF'.
-
I decided to start this thread to share scripting advice with similar minded people so that we don't have to reinvent the wheel every time. Using "exhaustive search" technique and this trick: In a dialog script (signposts are nice), put this temporary script (Remember to remove it after testing!): code = num=10; // It can be whatever number you want from the creatures in the zone // you can see the numbers if you use the editor. add_char_to_party(num); temp=1; while (temp<3005) { if (char_in_party(temp) > 0) { change_coins(temp); } temp=temp+1; } break; You talk to the signpost, creature 10 is added to your party (if spawned) and then you see its number from the coins you gained. I don't know how good you're in scripting, so I'll add this: At the beginning of the zone dialogue txt, you should have: // dlg.txt begintalkscript; variables; short num; short temp; MY PROBLEM: And that's a big one, so please help. Not all creatures seem to have a "total" number! After ~20 hours of work I can't find the number for the mages in the bone peaks. I can do some stuff to circumvent it and not lose a whole quest chain, but it would be far simpler and more efficient if I could find, or generate, some identifier for them to see if they're in party. Else if I put a flag when they're recruited and then they die or are dismissed, the events will keep happening...