Thank you for this advice and for your answer!Non è una consuetudine, ma è quello che fa una pergamena della trascendenza.
ScrollOfTranscendence.cs
Possono essere impostati per scegliere un'abilità casuale o una specifica e puoi specificare quanto aumenterà l'abilità
Orc/ADD/<ScrollOfTranscendence,Alchemy,1>Orc/ATTACH/<xmldeathaction/action/@GIVE/ScrollOfTranscendence,Alchemy,1>Orc/ATTACH/<xmldeathaction/action/@SETONTHIS/ADD/ScrollOfTranscendence,Alchemy,1>Orc/ATTACH/<xmldeathaction/action/@SETONTHIS/ADD/ScrollOfTranscendence/{RNDLIST,Alchemy,Anatomy,Healing,Stealing}/{RND,1,5}>C#:Orc/ATTACH/<xmldeathaction/action/@SETONTHIS/ADD/ScrollOfTranscendence,{RNDLIST,Alchemy,Anatomy,Healing,Stealing{RND,1,5}>
Orc/ATTACH/<xmldeathaction/action/@SETONTHIS/ADD/ScrollOfTranscendence,{RNDSTRLIST,Alchemy,Anatomy,Healing,Stealing},{RNDLIST,0.1,0.2,0.3,0.4,0.5}>


                            else if (kw == valuemodKeyword.RNDLIST || kw == valuemodKeyword.RNDSTRLIST)
                            {
                                // generate a random number and use it as the property value.  Use the format /RNDLIST,val1,val2,.../
                                if (value_keywordargs.Length > 1)
                                {
                                    // compute a random index into the arglist
                                    int randindex = Utility.Random(1, value_keywordargs.Length - 1);
                                    // assign the list entry as the value
                                    string randvalue = value_keywordargs[randindex];
                                    // set the property value
                                    string result = SetPropertyValue(spawner, o, arglist[0], randvalue);
                                    // see if it was successful
                                    if (result != "Property has been set.")
                                    {
                                        status_str = arglist[0] + " : " + result;
                                        no_error = false;
                                    }
                                }
                                else
                                {
                                    status_str = "Invalid " + arglist[0] + " args : " + arglist[1];
                                    no_error = false;
                                }
                                if (arglist.Length < 3) break;
                                remainder = arglist[2];
                            }                        else if ((kw == valueKeyword.RNDLIST) && arglist.Length > 1)
                        {
                            // syntax is RNDLIST,val1,val2,...
                            ptype = typeof(Int32);
                            // compute a random index into the arglist
                            int randindex = Utility.Random(1, arglist.Length - 1);
                            // return the list entry as the value
                            return arglist[randindex];
                        }
We use essential cookies to make this site work, and optional cookies to enhance your experience.
