RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
How to make a AI/NPC to say different everytime...?

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 88
http://www.rukinet.com
HI! Can I use variables or something to randomize what the AI/NPC says out of a few set messages?

For example; maybe I want the AI/NPC to say either "Welcome back! :D" or "ARE YOU HERE AGAIN? D:<" (he has huge mood swings, xP). Can I make this hapen with variables or anything? PLease help! Thank you!! ^^


Rukinet. - the dot's included!

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
or just self switches, but ya if you think they are really going to go back and talk that many times use variables. but dont forget you can do alot more...

common events useing gold ...different ammount = different thing said.
Watch out for: HaloOfTheSun

***
Rep:
Level 88
http://www.rukinet.com
or just self switches, but ya if you think they are really going to go back and talk that many times use variables. but dont forget you can do alot more...

common events useing gold ...different ammount = different thing said.

yeah, sure... but stil I don't understand variables good enough ...


Rukinet. - the dot's included!

****
Rep:
Level 88
I like helping. This is a way to make someone say to different things in a four part thingy :D
-----------------
1. Make a new single switch.
2. Make a conditinal branch and make it so that switch is on
3. In else make whatever their ment to be saying and then activate the switch
4. Under the conditinal branch put in what you want them to say later and thats what they'll say from there on. :D

(I only know this cos I've used it about 17 times now LOL!)

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Set a variable to a random number and according to that number let the NPC say something different each time. If you make like 3 or more possibilities it will already give your NPCs more life. ^__^
But if you want something like NPCs who kinda remember stuff, you should make it like Hale said.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
a variable is 100000x mroe useful then switches.

Ok (my famous example)
guy tell's you to kill 3 ghosts and come back when your done to get prize...
after each ghost battle you can flip a switch...but hey that would take three switches!
so when you go back to the guy you would need three conditional branches checking for three switches!!! what a pain...

with varibles...

after each ghost battle just use event command change variable, Name it "Ghost" and after each battle make it go up 1.

so now when you go back to the guy you need only 1 coditional branch checking ir variable ghost = 3.

 ;)
Watch out for: HaloOfTheSun