SphereCommunity
[UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] (/Thread-UPDATE-Amon-Vangrell-World-Decorator-OSI-LIKE)

Pages: 1 2 3 4 5 6 7 8


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - Ben - 05-22-2013 02:47 AM

you could always use FORINSTANCES on t_door and t_sign_gump also Wink


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - Staff_Stanic - 05-22-2013 05:25 AM

(05-22-2013 02:47 AM)Ben Wrote:  you could always use FORINSTANCES on t_door and t_sign_gump also Wink

Why nobody said this on Wiki? Sad(


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - darksun84 - 05-22-2013 05:27 AM

It's actually on chapter 7 Tongue

http://wiki.sphere.torfo.org/index.php/Chapter_7#FORINSTANCES


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - Staff_Stanic - 05-22-2013 06:20 AM

(05-22-2013 05:27 AM)darksun84 Wrote:  It's actually on chapter 7 Tongue

http://wiki.sphere.torfo.org/index.php/Chapter_7#FORINSTANCES
But the thing that Ben said have there?
Like FORINSTANCES t_door (is this?)


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - darksun84 - 05-22-2013 06:24 AM

ah damn, nope! my fault Blush


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - Rattlehead - 05-22-2013 06:41 AM

(05-22-2013 06:20 AM)Staff_Stanic Wrote:  
(05-22-2013 05:27 AM)darksun84 Wrote:  It's actually on chapter 7 Tongue

http://wiki.sphere.torfo.org/index.php/Chapter_7#FORINSTANCES
But the thing that Ben said have there?
Like FORINSTANCES t_door (is this?)


he has a point

SphereWiki Wrote:This offers the following advantages over using FORITEMS/FORCHARS 9999:
  • Sphere will only run your script for objects with the BASEID you are interested in.
  • Sphere knows how many instances of the object exist, so can abort the loop at an appropriate time.
  • Items inside containers (e.g. character backpacks or player banks) will not be missed out.

in this case Ben says FORINSTANCES will loop thru t_door yet on the wiki it specifically states it only loops thru BASEID not type definitions, so will it loop thru type definitions? if so the wiki will need updating.


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - darksun84 - 05-22-2013 06:51 AM

Uhm it actually doesn't work with Types Confused


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - amonvangrell - 05-22-2013 07:29 AM

Thx you all for the comments!
(05-22-2013 02:47 AM)Ben Wrote:  you could always use FORINSTANCES on t_door and t_sign_gump also Wink

I've tried what you said, but it didn't work.

(05-22-2013 02:36 AM)Staff_Stanic Wrote:  Hey! Just more tips Big Grin
(Just a PS.: I don't test! Please, check before Big Grin)

Am sorry am very week on scripting, but what its the difference on that implement? thx!


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - Staff_Stanic - 05-22-2013 07:52 AM

(05-22-2013 07:29 AM)amonvangrell Wrote:  
(05-22-2013 02:36 AM)Staff_Stanic Wrote:  Hey! Just more tips Big Grin
(Just a PS.: I don't test! Please, check before Big Grin)

Am sorry am very week on scripting, but what its the difference on that implement? thx!
Just otimization Big Grin


RE: [UPDATE]Amon Vangrell - World Decorator [OSI LIKE] - Ben - 05-22-2013 08:08 AM

sorry, stupid mistake. Didn't realise it was types... oops Blush