MultiChoice is something that you should really only do when you know all of the basics. You see it needs to use Variables, which may be difficult to some. I'll show you how to make a working script with multichoice, however I won't go into too much detail.I have a question: How can u use the comman "multichoice"?
I can script the normal things quite good, but I just don't understand this one ^^''
#Dynamic 0x800000
Lock
FacePlayer
MultiChoice 0xA 0x4 0x1 B_True
CopyVar 0x4003 LASTRESULT
Compare 0x4003 0x0
If B_TRUE Call @Choice1
Compare 0x4003 0x1
If B_TRUE Call @Choice2
Compare 0x4003 0x2
If B_TRUE Call @Choice3
Compare 0x4003 0x3
If B_TRUE Call @Choice4
Compare 0x4003 0x4
If B_TRUE Call @Choice5
Release
End
#Dynamic 0x800000
#ORG @Main
Lock
FacePlayer
MultiChoice 0xA 0x4 0x1 0x1
CopyVar 0x4003 LASTRESULT
Compare 0x4003 0x0
If B_TRUE Call @Choice1
Compare 0x4003 0x1
If B_TRUE Call @Choice2
Compare 0x4003 0x2
If B_TRUE Call @Choice3
Compare 0x4003 0x3
If B_TRUE Call @Choice4
Compare 0x4003 0x4
If B_TRUE Call @Choice5
Release
End
#ORG @Choice1
Message @Text1
BoxSet 6
Return
#ORG @Choice2
Message @Text2
BoxSet 6
Return
#ORG @Choice3
Message @Text3
BoxSet 6
Return
#ORG @Choice4
Message @Text4
BoxSet 6
Return
#ORG @Choice5
Message @Text5
BoxSet 6
Return
#ORG @Text1
= Message 1.
#ORG @Text2
= Message 2.
#ORG @Text3
= Message 3.
#ORG @Text4
= Message 4.
#ORG @Text5
= Message 5.
HackMew is writing it up as we speak.when will the full XSE tut be created..?
Wow... Soo many posts... :o
MultiChoice is something that you should really only do when you know all of the basics. You see it needs to use Variables, which may be difficult to some. I'll show you how to make a working script with multichoice, however I won't go into too much detail.
Spoiler:Ok, so first we will set a #Dynamic.
Next we want to lock the Player so he/she can't move. Also make the Person we are talking to Face the Player.Code:#Dynamic 0x800000
Next we will call the MultiChoice Command.Code:Lock FacePlayer
Ok, you should know what each of those means, because it's explained in the Command Help...Code:MultiChoice 0xA 0x4 0x1 B_True
Next we need to copy the Value "LASTRESULT" into another Var, so we can use it. Today I will be using 0x4003
Now, we are going to "Check" if the Value of 0x4003 is 0. If it is we will goto another script.Code:CopyVar 0x4003 LASTRESULT
Pretty much we just go that for as many results as the MultiChoice Box has. This certain Multichoice has 5 Options. So...Code:Compare 0x4003 0x0 If B_TRUE Call @Choice1
Next we are going to Release the Lock Command, giving control back to the player. And also End the script.Code:Compare 0x4003 0x1 If B_TRUE Call @Choice2 Compare 0x4003 0x2 If B_TRUE Call @Choice3 Compare 0x4003 0x3 If B_TRUE Call @Choice4 Compare 0x4003 0x4 If B_TRUE Call @Choice5
Code:Release End
Ok... That's pretty much it, all you really hae to do now is decide what you want each choice to do... Here is my beautiful example.
Code:#Dynamic 0x800000 #ORG @Main Lock FacePlayer MultiChoice 0xA 0x4 0x1 0x1 CopyVar 0x4003 LASTRESULT Compare 0x4003 0x0 If B_TRUE Call @Choice1 Compare 0x4003 0x1 If B_TRUE Call @Choice2 Compare 0x4003 0x2 If B_TRUE Call @Choice3 Compare 0x4003 0x3 If B_TRUE Call @Choice4 Compare 0x4003 0x4 If B_TRUE Call @Choice5 Release End #ORG @Choice1 Message @Text1 BoxSet 6 Return #ORG @Choice2 Message @Text2 BoxSet 6 Return #ORG @Choice3 Message @Text3 BoxSet 6 Return #ORG @Choice4 Message @Text4 BoxSet 6 Return #ORG @Choice5 Message @Text5 BoxSet 6 Return #ORG @Text1 = Message 1. #ORG @Text2 = Message 2. #ORG @Text3 = Message 3. #ORG @Text4 = Message 4. #ORG @Text5 = Message 5.
HackMew is writing it up as we speak.
He is done. Check XSE out here. Have fun with it. :)Nice, something else to work on now. i cannot wait until Hackmew is done! :)
Yes, from what I've seen the guide HackMew is making is very detailed. :)thx darthatron, I already know all the basics since I scripted with pokescript very much and quite advanced.(so I understood what u wrote there ^^)
I just don't know how some things are set in XSE, but I believe the tut will help? :D
It's pretty much the same, all that has changed dramatically is "$" to "@". Everything else is just easier. :Pwow..this XSE is too easy to use..but is there an alternative..were basic pokescript can stick here
it..confuses me...
What game are you hacking?I tried to make a script with a different color, but it stayed at red instead of Dark Green.
What would color scripts on XSE look like?
It's rather simple really:How can you give pokemon, I have tried the default one for poketscript and scripted but no luck. I hope there is more coverage in this and follow me scripts in following tutorials!
Byte1 = Pokemon Number
Byte2 = Pokemon Level
Byte3 = Held Item
Byte4 = ?
Byte5 = ?
Byte6 = ?
#Dynamic 0x800000
#ORG @Main
Lock
FacePlayer
GivePokemon 25 5 4 0 0 0
Release
End
What game are you hacking?
It's rather simple really:
The GivePokemon Command is set out like this:
So to make a basic script to give the Player a Level 5 Pikachu, holding a Pokeball, we would do this:Code:Byte1 = Pokemon Number Byte2 = Pokemon Level Byte3 = Held Item Byte4 = ? Byte5 = ? Byte6 = ?
Tada! :DCode:#Dynamic 0x800000 #ORG @Main Lock FacePlayer GivePokemon 25 5 4 0 0 0 Release End
Dang, thanks man! :D, gonna try a script for this now!
one more thing, are flags the same as others, i have not tried, can someone confirm or show an example of how to use flags in xsc and do the same movement codes apply?
#Dynamic 0x800000
#ORG @Main
Lock
FacePlayer
checkflag 0x200
if b_true goto @gotit
GivePokemon 25 5 4 0 0 0
message @recieved
setflag 0x200
Release
End
#ORG @gotit
message @howis
Release
End
#ORG @recieved
=Here is pikachu!
#ORG @howis
=How is pikachu doing?