Author Topic: A trigger that generates a random integer and assigns it as a variable to the PC  (Read 435 times)

Legacy_UnrealJedi

  • Full Member
  • ***
  • Posts: 226
  • Karma: +0/-0


               Doable? Does anyone have a short script in their archives they can post?

I am just thinking of a simple script...deletes the existing variable, rolls a random number, and then assigns it to the PC. 
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0


               void main
{
   SetLocalInt(GetEnteringObject(),"varname", d100());
}