Jump to content


Photo

Scripting


  • Please log in to reply
2 replies to this topic

#1 SapphireStreak

SapphireStreak

    GMC Member

  • GMC Member
  • 44 posts
  • Version:GM:HTML5

Posted 17 May 2012 - 03:57 PM

Hello!

I was wondering how your would script a question and register the input, then changing an instance, for instance:

Question:
Input
If input = one option then change instance into instance, else if other option change instance into instance etc

Please help!
  • 0

#2 jo-thijs

jo-thijs

    GMC Member

  • GMC Member
  • 1454 posts
  • Version:GM8.1

Posted 17 May 2012 - 04:05 PM

do you mean:
if show_question("Are you male?")
instance_change(malechar,1);
else
instance_change(femalechar,1);

This will ask Are you male? and change the object into object malechar if the user said yes and else into femalechar.
  • 0

#3 SapphireStreak

SapphireStreak

    GMC Member

  • GMC Member
  • 44 posts
  • Version:GM:HTML5

Posted 19 May 2012 - 09:51 AM

do you mean:
if show_question("Are you male?")
instance_change(malechar,1);
else
instance_change(femalechar,1);

This will ask Are you male? and change the object into object malechar if the user said yes and else into femalechar.


Yes thankyou!
It worked!!!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users