Bioware Archive
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
DKIM Added to mail server - to improve email activation.
Home
Help
Login
Register
Bioware Archive
»
Bioware Archive V2
»
Builders - Scripting
»
A trigger that generates a random integer and assigns it as a variable to the PC
« previous
next »
Print
Pages: [
1
]
Author
Topic: A trigger that generates a random integer and assigns it as a variable to the PC (Read 438 times)
Legacy_UnrealJedi
Full Member
Posts: 226
Karma: +0/-0
A trigger that generates a random integer and assigns it as a variable to the PC
«
on:
December 07, 2013, 11:42:37 am »
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.
Logged
Legacy_Lightfoot8
Hero Member
Posts: 4797
Karma: +0/-0
A trigger that generates a random integer and assigns it as a variable to the PC
«
Reply #1 on:
December 07, 2013, 04:37:12 pm »
void main
{
SetLocalInt(GetEnteringObject(),"varname", d100());
}
Logged
Print
Pages: [
1
]
« previous
next »
Bioware Archive
»
Bioware Archive V2
»
Builders - Scripting
»
A trigger that generates a random integer and assigns it as a variable to the PC