SphereCommunity
tagging carved heads... - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: tagging carved heads... (/Thread-tagging-carved-heads)



tagging carved heads... - x77x - 08-19-2017 12:27 AM

on the NPC... to tag the corpse

Code:
ON=@DeathCorpse
ARGO.TAG.NAMEX=<tag.namex>
ARGO.TAG.TITLEX=<title>
ARGO.TAG.LEVELX=<LEVEL>
ARGO.TAG.LOCATIONX=<region.name>
ARGO.TAG.ARMYX=<tag.army>

then when the NPC corpse is carved...

Code:
[ITEMDEF i_head_general]
ID=01ce1
FLIP=1
WEIGHT=10.0
CATEGORY=DRAGONSOFTIME
SUBSECTION=Generals Heads
DESCRIPTION=General Head
ON=@CLICK
MESSAGE @021 slain by <TAG.KILLER>
MESSAGE <TAG.DATE> <TAG.LOCATIONZ>
MESSAGE Head of <TAG.TITLEZ> <TAG.NAMEZ> [<TAG.ARMYZ>] [<TAG.LEVELZ>]
RETURN 1
ON=@create
TAG.NAMEZ=<CONT.TAG.NAMEX>
TAG.LEVELZ=<CONT.TAG.LEVELX>
TAG.ARMYZ=<CONT.TAG.ARMYX>
TAG.TITLEZ=<CONT.TAG.TITLEX>
tag.locationz=<cont.tag.locationx>
tag.date=<SERV.RTIME.FORMAT %m/%d/%y %I:%M%p>
tag.killer=<src.name>

date and killer work, but i cant get it to take the tags from the container
ideas?


RE: tagging carved heads... - darksun84 - 08-19-2017 01:51 AM

@Create is fired before the item is placed in the world, so itt can't access the container and you have to use
timerf 1,tag.locationz=<cont.tag.locationx> i think.


RE: tagging carved heads... - x77x - 08-19-2017 04:17 AM

i used pickup from pack before and that worked BUT everytime its picked up it changes


RE: tagging carved heads... - darksun84 - 08-19-2017 08:33 PM

What changes when you pick up the head from the pack?


RE: tagging carved heads... - x77x - 08-19-2017 08:47 PM

okay this works... tricked it

but sure looks UGLY!!!

Code:
[ITEMDEF i_head_general]
ID=01ce1
FLIP=1
WEIGHT=10.0
CATEGORY=DRAGONSOFTIME
SUBSECTION=Generals Heads
DESCRIPTION=General Head
ON=@CLICK
MESSAGE @021 slain by <TAG.KILLER>
MESSAGE <TAG.DATE> <TAG.LOCATIONZ>
MESSAGE @0481 Head of <TAG.TITLEZ> <TAG.NAMEZ> [<TAG.ARMYZ>] [<eval <TAG.LEVELZ>>]
RETURN 1
ON=@create
tag.date=<SERV.RTIME.FORMAT %m/%d/%y %I:%M%p>
tag.killer=<src.name>
Link=1
ON=@pickup_pack
IF <LINK>=1
TAG.NAMEZ=<CONT.TAG.NAMEX>
TAG.LEVELZ=<CONT.TAG.LEVELX>
TAG.ARMYZ=<CONT.TAG.ARMYX>
TAG.TITLEZ=<CONT.TAG.TITLEX>
tag.locationz=<cont.tag.locationx>
LINK=0
ENDIF


see that <eval <TAG.LEVELZ>> ?

is there a way to have it tag in decimal and STAY in decimal? everything always gets switched to hex and fucks stuff up...
when i use level, its always decimal


RE: tagging carved heads... - darksun84 - 08-19-2017 09:55 PM

I think numbers are always saved in decimal in tags


RE: tagging carved heads... - Ben - 08-20-2017 06:21 AM

If a number, it's always saved in hex.
If a string, saved as string.
The only way to trick it is to add a symbole in it when saving and removing when read.