How can a coder find out if the user has other heroes ?
Like Poison Ivy is supposed to be immune to poisons. So I made a poison hero and I want it not to work on players that have Poison Ivy.
|
Re: How can a coder find out if the user has other heroes ?
possible with the module :wink:
or you can rescript them together like my Pokemon Teams PS: nice to see ya |
Re: How can a coder find out if the user has other heroes ?
You can check out Blade when i release it though it would require editing Poison Ivy which I have to re-edit for Longshot anyway. But it would be a simple check like the one i made for Blade checking for Dracula (though in Blade it may look a bit strange). Will post it soon enough.
However, with the module there is a check you can use currently: Code:
//Check if user has this hero |
Re: How can a coder find out if the user has other heroes ?
something like get_user_info(id, "POISON", temp, 7) ?
thought about it, doesn't work. ps. nice to see ya too, i'm back now (again) |
Re: How can a coder find out if the user has other heroes ?
Quote:
|
Re: How can a coder find out if the user has other heroes ?
I bear no interest in the module. I just wanna know how can I find what I need to know using get_user_info(). So, can anyone help ? xD
|
Re: How can a coder find out if the user has other heroes ?
In your poison ivy code you first have to set a user's info using set_user_info, like in this code in your hero_init:
Code:
Then in your hero, when you have to retrieve the info, all you have to do is something similar to this: Code:
And yeah good to see you back. |
Re: How can a coder find out if the user has other heroes ?
No don't use set info, that's just bad... Should be removed from those others in favor of forwards.
Like I said before check Blade (and it's Dracula) - http://forums.alliedmods.net/showthread.php?t=30090 I gotta edit poison ivy at some point anyway. |
Re: How can a coder find out if the user has other heroes ?
Thank you very much, I'm checking it right now. First time I thought you were referring to the get/set info thingie. I will make a modified Poison Ivy for this, if it's ok with you ... but first I gotta understand what a "forward" is.
|
All times are GMT -4. The time now is 20:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.