Jump to content
  • 0

Mob Event Variables (Source Snippet)


Question

4 answers to this question

Recommended Posts

Posted

what you want to do with that ? elaborate more ?

as mentioned in the Mob_event_variables

this is the way to save the variable to assign a value / string to variable....

pc_setglobalreg(sd, "variable name", value);

how to determine the script to run in specific event ?

that will depend on how you add this into your source file....

Posted

I'm trying to overcome the need to use the in-game Quest UI for hunting missions, without using the OnDeath label - which would make that called every time any monster dies anywhere. With some source modifications I could essentially run event labels that run functions for specific monsters and limit the amount of processing going on serverside.

I'm not sure if I even need these to do this, but I probably would so I could store the mobs GID and create some kind of switch that shuffles through mobs for players on specific hunting missions attached to them.

It's probably a lost cause, though.

Posted

isnt that you can just use the Killedrid to check what monster they have killed ?

if you run another new npc label after each monster is killed.....it is the same as OnNPCKillEvent which run everytime a monster is killed.

so i think there is no need to add a new label if both work the same...

Posted

Yea, you are correct, that is exactly the issue I encountered. So I scrapped the idea.

Instead, I embedded the Quest UI in with my own quest system. It's cumbersome, but it gets the job done and makes everything look nice, plus adding quests ends up being simplier because I can use "checkquest" functions.

Well, I guess giving up wasn't so bad in this case.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...