• Random Script Commenting

    Pinned
    10
    10 Posts
    4k Views
    SnowstormS

    Conversation between scripters. One sentence written/2 years. I don't think my repply was ever read XD

    // These messages are not as important, they are sent to the debug PC if the debug mode has been activated. void DebugMessage(string sMsg, int iLevel = 0) { //Azz: I don't see a reason not to write this to the log. //Agrafes: Because it generates a ton of stuff? //Snowy: We should try to take out DebugMessage from scripts that were debugged then. WriteTimestampedLogEntry("DEBUG:" + sMsg);
  • Scripting?

    Pinned
    7
    7 Posts
    5k Views
    Simultaneous InsultS

    If you want to learn how to script, I also reccommend looking at a few tutorials on how to program using C++. It's very similar to the NwN scripting language, and learning about loops and functions and the syntax will help a lot!

    This free online book is apparantley quite good:

    Thinking in C++ Vol 1 and 2

  • Petrification script

    3
    3 Posts
    2k Views
    ?

    This kind of thing is kinda popular. so rather than every individual builder etc. creating a whole new OnSpawn event sript for their own statues, it's probably better to make a single resource and use that to save the number of different scripts and hard resource limits.

    I would definitely recommend taking care to combine with OnConversation event script that ensures they always face the correct orientation and remove/modify OnAttacked, otherwise the statuses will animate in different circumstance.

    Also, further, it may be even more prescient to have a standard "SpawnAs..." statue, "ghostly", etc. kind of script so builders can set a variable and a common scruipt will ensure the correct results...

  • Arena Fighter not working for me

    3
    3 Posts
    499 Views
    Mind Over BodyM

    It doesn't work. I wanted to post things on that 'issue tracked forum' and it never works for me, it won't let me log in.

    I think Tempest also wrote in his post that it didn't work for him so I'm not alone. o.o

  • Smoke Claws

    11
    11 Posts
    1k Views
    ZoolZ

    @mr-moloch said in Smoke Claws:

    Lords....I forgot to put the OnHitCastSpell property on the item. ffs.

    LOL

    classic.

  • Bard Song Scripts

    3
    3 Posts
    2k Views
    Tempest RoseT

    Can probably test it again but when testing Song of Fury my test subject reported that the rage did not last a full 10 rounds. It also doesn't effect the bard themselves, whether that is intended or not.

  • "Dirty Hak" Codi Robes

    5
    5 Posts
    4k Views
    ThuneT

  • Anti Helm-Hat Combo Script

    18
    18 Posts
    3k Views
    CitizenBaneC

    @verkosh:

    Hatmets are HERESY in the eyes of the EMPRAH. Only Slaneesh cultists would dare wear such

    The verk speaks truth.

  • Disabling PrC Preqs / Max HP

    8
    8 Posts
    3k Views
    R

    If you host a game those characters will go in server vault <_<

  • Hunger, Thirst, and Disease System

    5
    5 Posts
    1k Views
    M

    That one is a search system based on the on player chat to find items using a character's search skill. Also some DMFI stuff. I could also use some tutorials on while loops, or loops in general as I struggle with them sometimes.

  • Book Scripting

    4
    4 Posts
    5k Views
    ZoolZ

    You don't need one at all, it's probly a really bad way to do it. I mean, you could just have a bunch of objects somewhere with all the information stored either as local variables, or as descriptions or whatever you wanted. Or you could create a megatonne of actual conversation files, but I would advise against that.

  • Random Location Spawner. Needs Critique and Help

    5
    5 Posts
    2k Views
    ZoolZ

    If you really really need to then fiddle by hand with the orientation, you can use SetFacing ();

  • Scripting Help

    4
    4 Posts
    2k Views
    EchoE

    @Zool:

    Also it would probly cause an infinite loop because I AM ALWAYS AWESOME

    Looks like we found the source of the infinite loop issue :wink:

  • Golem Character Scripting Ideas!

    1
    1 Posts
    1k Views
    No one has replied
  • Remains/Creature Treasure

    3
    3 Posts
    2k Views
    ZoolZ

    Thanks buddy. We already have a script for this, I don't know if it was cancelled or doesnt run in some places or what. There are some issues with running it, like checking it really -should- run right then, so people don't lose out on loot they are about to pick up,m but those can be negated with further checks.

  • Scripting Help/Advice

    2
    2 Posts
    2k Views
    ZoolZ

    Respawn is essentially the same as ressurection or raise dead, just (probably) with different XP penalties, and a different means of triggering it. You probably want to use a conversation with some NPC (or whatever) and have a script fire in that, that is, essentially, identical to your res scripts, but with a different value in the variable it uses to remove XP.

    Whitelight is considerably different, as you need to actually delete characters from your server. That requires scripts outside of your game (I think, though honestly I'm not all that sure)

    The other option is to simply apply a variable to a character token (an item given on character creation, that can be used to store persistant variables relating to that specific character) upon whitelighting, this variable, lets called it

    iAmWhitelighted

    Gets set to 1.

    Any further conversations with the guy who respawns you could result in him saying he can't help you (use "text appears when", in the conversation option, and check for the variable on the character token)

    And any ressurection spells could find the character (Which it must already do) then check that variable, and if its 1, just stop (and probly send a message to the players involved)

  • Weight Reduction

    9
    9 Posts
    2k Views
    Gawain_VIIIG

    @Dedagin:

    @Zool:

    oh yeah, sorry, I was trying to apply logic to NWN's systems. Silly me.

    This works only if you then throw all of your results out, then plop in a totaly arbitrary number, like 42.

    The Sacred Answer to the Universe is NEVER arbitrary!

  • On Spawn

    4
    4 Posts
    2k Views
    ZoolZ

    yup easy mistake, made it about a bajillion times myself.

  • Custom Classes for v5- Vital Statistics

    18
    18 Posts
    6k Views
    PolarisP

    We'd be much more interested in more options for existing classes if he can do that.

  • Summons guiding system

    12
    12 Posts
    4k Views
    ?

    Hey DiaboSatan, has this been scripted in please?