Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Hey how do i do this?[solved]


or3o
 Share

Recommended Posts

i wanna set an items paperdoll from .paperdoll to .DaggerPdoll when its in the shield slot so like

```
if item(getplayerequipment(index,shield)).isdagger = true then

Call DrawPaperdoll(x, y, Item(Index).DaggerPdoll, anim, spritetop)

end if
```

my only problem is i dont know how to make the .paperdoll stop displaying at the same time :/ i would be gratefull for any help in this issue. the reason i dont just make it set the paperdoll to 0 is if i equip in in the weapon slot it wouldnt show up after that.
Link to comment
Share on other sites

im trying to fix my daggers tutorial . thanks for the imput. Basically i have a weapon that can go in the weapon slot or the shield slot but when its in the shield slot it uses a different paperdoll, the only problems is it displays both paperdolls when its in the shield slot.

So i got it to work, in sub draw sprite just below```
Drawsprite(sprite,x ,y,rec)
```i pasted this and its works

```
If GetPlayerEquipment(Index, Shield) <> Player(Index).WieldDagger Then 'Get player daggers [ 1]

If GetPlayerEquipment(Index, Armor) > 0 Then

Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, Armor)).Paperdoll, anim, spritetop)

End If

If GetPlayerEquipment(Index, Helmet) > 0 Then

Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, Helmet)).Paperdoll, anim, spritetop)

End If

If GetPlayerEquipment(Index, legs) > 0 Then

Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, legs)).Paperdoll, anim, spritetop)

End If

If GetPlayerEquipment(Index, Boots) > 0 Then

Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, Boots)).Paperdoll, anim, spritetop)

End If

If GetPlayerEquipment(Index, Glove) > 0 Then

Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, Glove)).Paperdoll, anim, spritetop)

End If

If GetPlayerEquipment(Index, Ring) > 0 Then

Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, Ring)).Paperdoll, anim, spritetop)

End If

If GetPlayerEquipment(Index, Enchant) > 0 Then

Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, Enchant)).Paperdoll, anim, spritetop)

End If

If GetPlayerEquipment(Index, Shield) > 0 Then

Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, Shield)).Daggerpdoll, anim, spritetop)

End If

If GetPlayerEquipment(Index, Weapon) > 0 Then

Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, Weapon)).Paperdoll, anim, spritetop)

End If

Exit Sub

End If

```
do you think its dumb that i bypassed the paperdoll order ? i have it set so if the shield isnt a dagger it just renders everything normally.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...