ShadowChemosh
Well-known member
In simple terms I am trying to write a "pre-requisites" script on a "Item Power" that checks to see if the custom armor is made from Dragonhide material.
My issue is trying to figure out the right wording to transition from the Item Power to the Gizmo and to test if "eDragon" is live.
After much reading I was able to write the following script:
Which gets me the following results:
So I am getting close as I can see the "eDragon" but I would like to be able to transition directly to the Thing that the "Item Power" is attached to. As I don't want to test every magic armor on the hero just the one I am attached to.
In example:
I have tried dozen of different combinations and searched the forums and searched Savage Tide for help but no luck.
Any grand master able to tell me the verbiage I need to transition from a "Item Power" to the gizmo and test that "eDragon" is on the gizmo.
Thanks
My issue is trying to figure out the right wording to transition from the Item Power to the Gizmo and to test if "eDragon" is live.
After much reading I was able to write the following script:
Code:
foreach pick in hero from BaseArmor where "thingid.iMagArmor"
foreach pick in eachpick.gizmo
debug "gizmoid: " & eachpick.idstring
nexteach
nexteach
Code:
gizmoid: lCommon
gizmoid: gCustMagic
gizmoid: ipDADisch
gizmoid: eDragon
gizmoid: arHide
So I am getting close as I can see the "eDragon" but I would like to be able to transition directly to the Thing that the "Item Power" is attached to. As I don't want to test every magic armor on the hero just the one I am attached to.
In example:
Code:
If (gizmo.container.childlives[eDragon] <> 0) Then
@valid = 1
Endif
OR
If (gizmo.tagis[thingid.eDragon] <> 0) Then
@valid = 1
Endif
Any grand master able to tell me the verbiage I need to transition from a "Item Power" to the gizmo and test that "eDragon" is on the gizmo.
Thanks