Forum rules - please read before posting.

Resulka

About

Username
Resulka
Joined
Visits
96
Last Active
Roles
Member

Comments

  • Yeah, It was in my run() function, But you're right, I lost a brace while converting my Remove inventory into this. Sorry, I had triple checked the run() before commenting, But I lost it all the way back up at public ActionSwitchContextSensitive() a…
  • So I've put  AC.KickStarter.settingsManager.interactionMethod = AC_InteractionMethod.ContextSensitive;        return 0f; as my run code for a Custom Action to switch the code - The error I'm receiving is "Class, Struct, or interface method mus…
  • Or I suppose I could just go with Context sensitive and switch it to Hotspot then interaction for the investigation styled scenes. Which might be a better design choice to lock it off rather then having it available all the time. There's only so man…
  • Okay, that's... A lot to try to take in at midnight. XD Could I possibly set it to context sensitive but instead of right click for look - Can I set it up to run a verb coin? So Left click will work as use and right will bring up a verb coin menu t…
  • Video here:https://youtu.be/JQbK5GbmgTw So to recap - 1. I'm finding the default cursor doesn't activate the USE interactions by itself. 2. Hovering over a single use interaction drops the cursor (That I can work around). So 3. what I wanted to do …
  • I'll make a video, Stay tuned. <3
  • I worked it out - I had an extra return false; Warning is all gone now. Thanks for your help!
  • Actually, curiosity won out. So I gave it a go and it works wonderfully. I'm not loading it into a variable anymore am I, So I can essentially wipe that global var out - Once I've recoded my scripts obviously.. It does give me a warning though - Unr…
  • Oh I didn't even notice there was an ActionCheckTemplate! I'll check it out tomorrow and hopefully I can work it out. Thanks so much! That'll be a great help!
  • Thanks, That fixed the issue correctly.  As for upgrading my action - I'm not that advanced as coding (obviously) as while I get the concept of what you're saying, I'm not sure where I'd put it.  My InvVar script looks as follows:      AC.InvItem…
  • Actually it was tripping on CurrentInvPropVal = (myItem.GetProperty(3).val == 1);  But I suppose if myItem is null, then it's not going to be able to get anything out of myItem.GetProperty to work. I've already got the script running in the backgro…
  • Thanks again! The action finally implemented... However when it runs it breaks the game. The console comes back with "Object reference not set to an instance of an object" - Sorry that you've had to hold my hand through this. It seems to b…
  • And now I'm getting another error - Not all code paths return a value. Considering that above line would possibly only work if the value was true, I tried forming it into a if statement instead as: if (myItem.GetProperty(3).val == 1)            {   …
  • Hi Chris, Thanks - That should help me once I've worked out the main issue... Converting the InvVar to a Bool. I'm getting a "Cannot implicity convert type 'AC.InvVar' to bool" error. Considering InvVar's cover all variables is there somet…
  • I notice in that list that there's an option to Switch Targets - But it's not in the drop down options of the action lists. That would essentially do what I want, wouldn't it? By Switching Targets, it can go to a Marker which I'll have set up, and t…
  • Yeah, I have it set up as orthographic.  I'm moving the camera by having it target an empty child I'm calling PanControl and I wrote a script for it's location to update to the location of the mouse's position. As for looking into a function where t…
  • Awesome, Works perfectly.  Thank you so much for your help. <3
  • Hi Chris, Sorry the tutorial on custom action isn't very clear how it's calling these functions from inside the script. My scripting experience is heavily based in AGS, So I'm not entirely sure how the script is being run. I currently have my code s…
Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.