SphereCommunity
bring up a target? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: bring up a target? (/Thread-bring-up-a-target)



bring up a target? - x77x - 10-27-2015 06:44 AM

Code:
[PLEVEL 1]
stats

[FUNCTION stats]
DIALOG d_stats
DIALOG d_stats2

[DIALOG d_stats]
20,45
nomove
page 0 // Basic layout
.
.
.

how can i bring up a target, so you can target yourself and see your stats, OR target someone else and see their stats


i tried

[PLEVEL 1]
stats

[FUNCTION stats]
TARGETF DIALOG d_stats
TARGETF DIALOG d_stats2

dont work


RE: bring up a target? - pointhz - 10-27-2015 07:04 AM

[FUNCTION stats]
SRC.SYSMESSAGE choose a target
TARGETF f_stats

[FUNCTION f_stats]
SRC.DIALOG d_stats

[DIALOG d_stats]
dtext 120 80 137 <ARGO.NAME>

Something like that


RE: bring up a target? - XuN - 10-27-2015 06:18 PM

[FUNCTION stats]
SysMessage=Choose a target.
TARGETF f_stats


[FUNCTION f_stats]
ARGO.DIALOG d_stats // DIALOGS are called on ARGO, but showed to SRC by default so you only need to point to who do you want to see stats while you are SRC.

[DIALOG d_stats]
dtext 120 80 137 <NAME> // NO ARGO, NO SRC in the whole dialog


RE: bring up a target? - pointhz - 10-28-2015 01:52 AM

How could you force the dialog to be opened on argo instead of in yourself xun?


RE: bring up a target? - XuN - 10-28-2015 02:48 AM

trysrc argo, argo.dialog d_stats


RE: bring up a target? - x77x - 10-28-2015 03:24 AM

players only?

it works but on everything...


RE: bring up a target? - Extreme - 10-28-2015 09:24 AM

Trysrc <ARGO> sdialog d_stats