Author |
Message |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 09/25/2011 10:18:38
|
Legendary_Agent
Killing Spree
Joined: 08/21/2006 02:57:13
Messages: 33
Offline
|
Hey all, since i am still stuck with druidsrpg200 as the newer versions are not not wanted for public download im changing this one and i need to know whats the exact line of script to detect the player class? as in:
if (player.class="weaponmaster")
{
Artifact.Use=False
}
else
{
Artifact.Use=True
}
what i want to do is to make my own artifacts and make them not possible to be used with a specific class as they run into some problems.
Could anyone give me a hand on this matter please?
Thanks in advance!
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 10/01/2011 18:31:56
|
Jefe
Godlike
![[Avatar]](/dcforum/images/avatar/f4dd765c12f2ef67f98f3558c282a9cd.jpg)
Joined: 11/05/2008 22:52:53
Messages: 361
Offline
|
What I would do is make a new "loaded" skill for your weapon master class. It would suck for other classes if the artifact dropped randomly but couldn't be used.
Extend DruidArtifactLoaded but change the (Data.Abilities[x] == class'ClassAdrenalineMaster') to Weaponmaster for your new WM skill. That function can be used to restrict the artifact to WMs only as well, look at the AM artifacts that do similar.
|
The new DC server:
 |
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 10/02/2011 04:54:24
|
Legendary_Agent
Killing Spree
Joined: 08/21/2006 02:57:13
Messages: 33
Offline
|
Jefe wrote:
What I would do is make a new "loaded" skill for your weapon master class. It would suck for other classes if the artifact dropped randomly but couldn't be used.
Extend DruidArtifactLoaded but change the (Data.Abilities[x] == class'ClassAdrenalineMaster') to Weaponmaster for your new WM skill. That function can be used to restrict the artifact to WMs only as well, look at the AM artifacts that do similar.
that is what i am doing, except im doing it for AM and MM only, WM is op enough without it, and it also causes some lame glitches.
im using the normal retention powerups from WOP, they no longer drop randomly, but they also semm to be glitchy in this way, they dont work very well lol, ill have to think of something else probably.
PS: thx for ur advice.
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 10/03/2011 07:29:22
|
Jefe
Godlike
![[Avatar]](/dcforum/images/avatar/f4dd765c12f2ef67f98f3558c282a9cd.jpg)
Joined: 11/05/2008 22:52:53
Messages: 361
Offline
|
Ok, i misunderstood, i thought you wanted it to only be usable by WMs. Still, the same method applies, just put in the classes you want it to be used by.
|
The new DC server:
 |
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 10/03/2011 08:14:50
|
Legendary_Agent
Killing Spree
Joined: 08/21/2006 02:57:13
Messages: 33
Offline
|
Yeah thanks mate ^^
|
|
 |
|