script condizioni ad un oggetto

« Older   Newer »
 
  Share  
.
  1. vitamina hacker
     
    .

    User deleted


    ciao ragazzi mi chiedevo e possibile dare una condizione ad un oggetto esempio

    il personaggio puo uitlizzare un libro su se stesso solo se ha conoscenza 20 se non si puo utilizzare l'oggetto

    e possibile?
     
    Top
    .
  2. vitamina hacker
     
    .

    User deleted


    ma nessuno mi aiuta? bene...
     
    Top
    .
  3. CrismonLight
     
    .

    User deleted


    Non credo, massimo che puoi fare e decidere quante Conoscenze ci vogliono per identificarlo. :unsure.gif:

    Comunque devi avere pazienza per le risposte, non puoi aspettarti che ti rispondano subito! ;)
     
    Top
    .
  4. vitamina hacker
     
    .

    User deleted


    se setto le variabili si puo?
     
    Top
    .
  5. vitamina hacker
     
    .

    User deleted


    cmq ho visto che c'e questo script per un oggetto che dice che puoi utilizzarlo solo se hai 16 in inteligenza come faccio pero a metterlo negli altri?

    // i_bbbk_clayglm_bgs_ac
    /*
    Template for the "Clay Golem Manual" Activate item script.
    This will summon a Clay Golem for ten minutes.
    */
    // RJH 21sep10

    const string GM_RESREF = "c_claygolem";
    const int GM_TURNS = 10;
    const int SPELL_LEVEL = 9;

    #include "winc_tag_based_scripts"

    void main()
    {
    object oPC = GetItemActivator();
    location locTarget = GetItemActivatedTargetLocation();

    // Requires an intelligence of 16 or more to activate
    int nInt = GetAbilityScore( oPC, ABILITY_INTELLIGENCE );
    if ( nInt < 16 )
    {
    // Send an explanation
    FloatingTextStringOnCreature( "You " +
    "failed to understand the manual", oPC, FALSE );
    }
    else
    {
    // Summon the clay golem
    AssignCommand( oPC, SummonCreature( GM_RESREF,
    locTarget, TurnsToSeconds( GM_TURNS ), SPELL_LEVEL ) );
    }
    }
     
    Top
    .
  6. vitamina hacker
     
    .

    User deleted


    ok raga ce la fatta grandissimooooooooo ho messo due restrizioni
    intelligenza superiore a 18
    conoscenza 50 complessiva di somma della classe.

    eccezionale......
     
    Top
    .
5 replies since 27/5/2012, 18:20   73 views
  Share  
.
Top